[PATCH] smb: server: reset smb_direct_port = SMB_DIRECT_PORT_INFINIBAND on init
Stefan Metzmacher
metze at samba.org
Mon Jan 19 17:40:15 UTC 2026
Hi Namjae,
can this be merged? It makes testing between roce and iwarp
much easier.
I have infrastructure to listen on both iwarp and roce
at the same time, but I haven't written the patches for
ksmbd.ko to use it. I'll hopefully find the time
in the next days.
Thanks!
metze
Am 08.12.25 um 16:49 schrieb Stefan Metzmacher:
> 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 at kernel.org>
> Cc: Steve French <smfrench at gmail.com>
> Cc: Tom Talpey <tom at talpey.com>
> Cc: linux-cifs at vger.kernel.org
> Cc: samba-technical at lists.samba.org
> Signed-off-by: Stefan Metzmacher <metze at samba.org>
> ---
> fs/smb/server/transport_rdma.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/smb/server/transport_rdma.c b/fs/smb/server/transport_rdma.c
> index f585359684d4..05f008ea51cd 100644
> --- a/fs/smb/server/transport_rdma.c
> +++ b/fs/smb/server/transport_rdma.c
> @@ -2708,6 +2708,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);
More information about the samba-technical
mailing list