[PATCH] smb: server: reset smb_direct_port = SMB_DIRECT_PORT_INFINIBAND on init

Namjae Jeon linkinjeon at kernel.org
Tue Jan 20 13:12:48 UTC 2026


On Tue, Jan 20, 2026 at 2:40 AM Stefan Metzmacher <metze at samba.org> wrote:
>
> Hi Namjae,
>
> can this be merged? It makes testing between roce and iwarp
> much easier.
Looks ok. Applied it to #ksmbd-for-nex-next.
>
> 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.
I also hope it will be supported soon.
Thanks!
>
> 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