]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
smb: server: reset smb_direct_port = SMB_DIRECT_PORT_INFINIBAND on init
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Dec 2025 15:49:19 +0000 (16:49 +0100)
committerSteve French <stfrench@microsoft.com>
Fri, 23 Jan 2026 00:13:44 +0000 (18:13 -0600)
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>
fs/smb/server/transport_rdma.c

index 8620690aa2ec0ae1cc95124c6ac70ba6bc9138d4..e4273932e7e497e74f4fe2e594c8108282edf6b8 100644 (file)
@@ -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);