diff options
author | Long Li <longli@microsoft.com> | 2017-11-22 17:38:37 -0700 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-01-24 19:49:06 -0600 |
commit | 8ef130f9ec27973f7b49e20c5a3b9134ca33026c (patch) | |
tree | 563cf221e25dab8743dabf4e3cd42e04c5fc8e23 /fs/cifs/smbdirect.h | |
parent | 781a8050f2a8e1474a75122b7d940959cc579e14 (diff) | |
download | linux-8ef130f9ec27973f7b49e20c5a3b9134ca33026c.tar.gz linux-8ef130f9ec27973f7b49e20c5a3b9134ca33026c.tar.bz2 linux-8ef130f9ec27973f7b49e20c5a3b9134ca33026c.zip |
CIFS: SMBD: Implement function to destroy a SMB Direct connection
Add function to tear down a SMB Direct connection. This is used by upper layer
to free all SMB Direct connection and transport resources.
Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs/smbdirect.h')
-rw-r--r-- | fs/cifs/smbdirect.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/smbdirect.h b/fs/cifs/smbdirect.h index f1db2ee7c8c2..f0ce934650c1 100644 --- a/fs/cifs/smbdirect.h +++ b/fs/cifs/smbdirect.h @@ -249,6 +249,8 @@ struct smbd_connection *smbd_get_connection( /* Reconnect SMBDirect session */ int smbd_reconnect(struct TCP_Server_Info *server); +/* Destroy SMBDirect session */ +void smbd_destroy(struct smbd_connection *info); #else #define cifs_rdma_enabled(server) 0 @@ -256,6 +258,7 @@ struct smbd_connection {}; static inline void *smbd_get_connection( struct TCP_Server_Info *server, struct sockaddr *dstaddr) {return NULL;} static inline int smbd_reconnect(struct TCP_Server_Info *server) {return -1; } +static inline void smbd_destroy(struct smbd_connection *info) {} #endif #endif |