summaryrefslogtreecommitdiffstats
path: root/fs/ksmbd/transport_rdma.h
diff options
context:
space:
mode:
authorHyunchul Lee <hyc.lee@gmail.com>2021-12-29 23:02:15 +0900
committerSteve French <stfrench@microsoft.com>2022-01-10 12:44:19 -0600
commit31928a001bed0d9642711d2eba520fc46d41c376 (patch)
tree8b37bfbd410bbb4b09888c5ee18c7691dd6f520d /fs/ksmbd/transport_rdma.h
parentd4eeb82674acadf789277b577986e8e7d3faf695 (diff)
downloadlinux-31928a001bed0d9642711d2eba520fc46d41c376.tar.gz
linux-31928a001bed0d9642711d2eba520fc46d41c376.tar.bz2
linux-31928a001bed0d9642711d2eba520fc46d41c376.zip
ksmbd: register ksmbd ib client with ib_register_client()
Register ksmbd ib client with ib_register_client() to find the rdma capable network adapter. If ops.get_netdev(Chelsio NICs) is NULL, ksmbd will find it using ib_device_get_by_netdev in old way. Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/transport_rdma.h')
-rw-r--r--fs/ksmbd/transport_rdma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ksmbd/transport_rdma.h b/fs/ksmbd/transport_rdma.h
index 0fa8adc0776f..ab9250a7cb86 100644
--- a/fs/ksmbd/transport_rdma.h
+++ b/fs/ksmbd/transport_rdma.h
@@ -52,7 +52,7 @@ struct smb_direct_data_transfer {
#ifdef CONFIG_SMB_SERVER_SMBDIRECT
int ksmbd_rdma_init(void);
-int ksmbd_rdma_destroy(void);
+void ksmbd_rdma_destroy(void);
bool ksmbd_rdma_capable_netdev(struct net_device *netdev);
#else
static inline int ksmbd_rdma_init(void) { return 0; }