mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
smb: server: reset smb_direct_port = SMB_DIRECT_PORT_INFINIBAND on init
This allows testing with different devices (iwrap vs. non-iwarp) without 'rmmod ksmbd && modprobe ksmbd', but instead 'ksmbd.control -s && ksmbd.mountd' is enough. In the long run we want to listen on iwarp and non-iwarp at the same time, but requires more changes, most likely also in the rdma layer. Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher <metze@samba.org> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
committed by
Steve French
parent
8e50cd059c
commit
5914d98ff0
@@ -2707,6 +2707,7 @@ int ksmbd_rdma_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
smb_direct_port = SMB_DIRECT_PORT_INFINIBAND;
|
||||
smb_direct_listener.cm_id = NULL;
|
||||
|
||||
ret = ib_register_client(&smb_direct_ib_client);
|
||||
|
||||
Reference in New Issue
Block a user