aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smbdirect.h
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2017-11-22 17:38:35 -0700
committerSteve French <smfrench@gmail.com>2018-01-24 19:49:06 -0600
commitad57b8e1726ed1b61f74c278c602cd5aab21bd95 (patch)
treef2fc472770919cfcb2b8faf83a595859e4150b55 /fs/cifs/smbdirect.h
parentCIFS: SMBD: Upper layer connects to SMBDirect session (diff)
downloadlinux-dev-ad57b8e1726ed1b61f74c278c602cd5aab21bd95.tar.xz
linux-dev-ad57b8e1726ed1b61f74c278c602cd5aab21bd95.zip
CIFS: SMBD: Implement function to reconnect to a SMB Direct transport
Add function to implement a reconnect to SMB Direct. This involves tearing down the current connection and establishing/negotiating a new connection. 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 '')
-rw-r--r--fs/cifs/smbdirect.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/smbdirect.h b/fs/cifs/smbdirect.h
index 25b3782cc692..f1db2ee7c8c2 100644
--- a/fs/cifs/smbdirect.h
+++ b/fs/cifs/smbdirect.h
@@ -247,11 +247,15 @@ struct smbd_response {
struct smbd_connection *smbd_get_connection(
struct TCP_Server_Info *server, struct sockaddr *dstaddr);
+/* Reconnect SMBDirect session */
+int smbd_reconnect(struct TCP_Server_Info *server);
+
#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;}
+static inline int smbd_reconnect(struct TCP_Server_Info *server) {return -1; }
#endif
#endif