Re: [PATCH v2 0/2] smb: smbdirect: don't use the iWarp port mapper

From: Namjae Jeon

Date: Wed Dec 02 2026 - 21:47:07 EST


On Thu, Dec 3, 2026 at 5:49 AM Stefan Metzmacher <metze@xxxxxxxxx> wrote:
>
> Hi Paulo, hi Namjae, hi Jason, hi Leon,
>
> - "RDMA/cma: introduce rdma_set_iwpm()" lets the upper layer decide
> whether the iWarp port mapper is used for an rdma_cm_id. If iwpmd
> is running, every listening and connecting iWarp cm_id gets its
> port mapped, and a connect asks the remote iwpmd for the mapped
> port of the remote listener. For kernel users with a well known
> port, like smbdirect with port 5445, that's more harmful than
> helpful: if the iwpmd state on both sides doesn't match the actual
> listeners, e.g. a listener created before iwpmd was started, the
> connection goes to a mapped port nobody listens on, while it works
> fine without iwpmd.
>
> - smbdirect uses rdma_set_iwpm(false), so iWarp devices always listen
> on and connect to the requested port 5445.
>
> Jason, Leon: the first patch is needed by the smbdirect change, so I'd
> like to take it through the smb tree with your Ack, if that's fine
> with you, like "RDMA/core: introduce rdma_restrict_node_type()" for
> v7.0.
Looks good to me.
I’ll take this series through the ksmbd tree once they have acked the
first patch.
Thanks!