diff options
author | Long Li <longli@microsoft.com> | 2017-11-18 02:26:52 +0100 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-01-25 02:49:05 +0100 |
commit | 399f9539d951adf26a1078e38c1b0f10cf6c3e71 (patch) | |
tree | e1f8475082fb3495674dc4a5459a4e78c46e28ec /fs/cifs/smbdirect.h | |
parent | CIFS: SMBD: Establish SMB Direct connection (diff) | |
download | linux-399f9539d951adf26a1078e38c1b0f10cf6c3e71.tar.xz linux-399f9539d951adf26a1078e38c1b0f10cf6c3e71.zip |
CIFS: SMBD: Implement function to create a SMB Direct connection
The upper layer calls this function to connect to peer through SMB Direct.
Each SMB Direct connection is based on a RDMA RC Queue Pair.
Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/smbdirect.h')
-rw-r--r-- | fs/cifs/smbdirect.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/smbdirect.h b/fs/cifs/smbdirect.h index e4e65d3c6de8..25b3782cc692 100644 --- a/fs/cifs/smbdirect.h +++ b/fs/cifs/smbdirect.h @@ -243,9 +243,15 @@ struct smbd_response { u8 packet[]; }; +/* Create a SMBDirect session */ +struct smbd_connection *smbd_get_connection( + struct TCP_Server_Info *server, struct sockaddr *dstaddr); + #else #define cifs_rdma_enabled(server) 0 struct smbd_connection {}; +static inline void *smbd_get_connection( + struct TCP_Server_Info *server, struct sockaddr *dstaddr) {return NULL;} #endif #endif |