Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1716005

[Patch v2 04/19] CIFS: SMBD: Add SMBDirect transport to SMB connection and Makefile

From Long Li <longli@exchange.microsoft.com>
Newsgroups linux.kernel
Subject [Patch v2 04/19] CIFS: SMBD: Add SMBDirect transport to SMB connection and Makefile
Date 2017-08-20 21:20 +0200
Message-ID <ugDVo-2Bc-5@gated-at.bofh.it> (permalink)
References <ugDLH-2xW-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Long Li <longli@microsoft.com>

Add SMBDirect as an optional connection to SMB session defined in CIFS. When connection is on SMBDirect, upper layer uses this connection to carry payloads.

With the transport hooked up, add SMBDirect code to Makefile.

Signed-off-by: Long Li <longli@microsoft.com>
---
 fs/cifs/Makefile   | 2 +-
 fs/cifs/cifsglob.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/cifs/Makefile b/fs/cifs/Makefile
index eed7eb0..6bb9863 100644
--- a/fs/cifs/Makefile
+++ b/fs/cifs/Makefile
@@ -18,4 +18,4 @@ cifs-$(CONFIG_CIFS_DFS_UPCALL) += dns_resolve.o cifs_dfs_ref.o
 cifs-$(CONFIG_CIFS_FSCACHE) += fscache.o cache.o
 
 cifs-$(CONFIG_CIFS_SMB2) += smb2ops.o smb2maperror.o smb2transport.o \
-			    smb2misc.o smb2pdu.o smb2inode.o smb2file.o
+			    smb2misc.o smb2pdu.o smb2inode.o smb2file.o smbdirect.o
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 703c2fb..dc5404d 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -652,6 +652,8 @@ struct TCP_Server_Info {
 	bool	large_buf;		/* is current buffer large? */
 	/* use SMBD connection instead of socket */
 	bool	rdma;
+	/* point to the SMBD connection if RDMA is used instead of socket */
+	struct smbd_connection *smbd_conn;
 	struct delayed_work	echo; /* echo ping workqueue job */
 	char	*smallbuf;	/* pointer to current "small" buffer */
 	char	*bigbuf;	/* pointer to current "big" buffer */
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[Patch v2 00/19] CIFS: Implement SMBDirect Long Li <longli@exchange.microsoft.com> - 2017-08-20 21:20 +0200
  [Patch v2 04/19] CIFS: SMBD: Add SMBDirect transport to SMB connection and Makefile Long Li <longli@exchange.microsoft.com> - 2017-08-20 21:20 +0200
  [Patch v2 06/19] CIFS: SMBD: Reconnect to SMBDirect session Long Li <longli@exchange.microsoft.com> - 2017-08-20 21:20 +0200
  [Patch v2 02/19] CIFS: SMBD: Add SMBDirect protocol and transport constants Long Li <longli@exchange.microsoft.com> - 2017-08-20 21:20 +0200
  RE: [Patch v2 00/19] CIFS: Implement SMBDirect "Steve Wise" <swise@opengridcomputing.com> - 2017-08-21 21:20 +0200
    RE: [Patch v2 00/19] CIFS: Implement SMBDirect "Steve Wise" <swise@opengridcomputing.com> - 2017-08-21 22:00 +0200
      RE: [Patch v2 00/19] CIFS: Implement SMBDirect Long Li <longli@microsoft.com> - 2017-08-21 22:30 +0200
    RE: [Patch v2 00/19] CIFS: Implement SMBDirect Long Li <longli@microsoft.com> - 2017-08-21 22:00 +0200

csiph-web