Skip to content

Commit 5914d98

Browse files
metze-sambasmfrench
authored andcommitted
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>
1 parent 8e50cd0 commit 5914d98

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/smb/server/transport_rdma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2707,6 +2707,7 @@ int ksmbd_rdma_init(void)
27072707
{
27082708
int ret;
27092709

2710+
smb_direct_port = SMB_DIRECT_PORT_INFINIBAND;
27102711
smb_direct_listener.cm_id = NULL;
27112712

27122713
ret = ib_register_client(&smb_direct_ib_client);

0 commit comments

Comments
 (0)