[PATCH] RDMA/core: check id_priv->restricted_node_type in cma_listen_on_dev()
Stefan Metzmacher
metze at samba.org
Thu Feb 26 09:32:27 UTC 2026
Am 25.02.26 um 13:52 schrieb Leon Romanovsky:
> On Tue, Feb 24, 2026 at 05:59:52PM +0100, Stefan Metzmacher wrote:
>> When listening on wildcard addresses we have a global list for
>> the application layer rdma_cm_id and for any existing
>> device or any device added in future we try to listen
>> on any wildcard listener.
>>
>> When the listener has a restricted_node_type we
>> should prevent listening on devices with a different
>> node type.
>>
>> While there fix the documentation comment of
>> rdma_restrict_node_type() to include rdma_resolve_addr()
>> instead of having rdma_bind_addr() twice.
>>
>> Fixes: a760e80e90f5 ("RDMA/core: introduce rdma_restrict_node_type()")
>> Cc: Jason Gunthorpe <jgg at ziepe.ca>
>> Cc: Leon Romanovsky <leon at kernel.org>
>> Cc: Steve French <smfrench at gmail.com>
>> Cc: Namjae Jeon <linkinjeon at kernel.org>
>> Cc: Tom Talpey <tom at talpey.com>
>> Cc: Long Li <longli at microsoft.com>
>> Cc: linux-rdma at vger.kernel.org
>> Cc: linux-cifs at vger.kernel.org
>> Cc: samba-technical at lists.samba.org
>> Signed-off-by: Stefan Metzmacher <metze at samba.org>
>> ---
>> drivers/infiniband/core/cma.c | 6 +++++-
>> include/rdma/rdma_cm.h | 2 +-
>> 2 files changed, 6 insertions(+), 2 deletions(-)
>
> Applied, thanks.
Great!
Will this be scheduled for rc2?
Would be great as it fixes a regression in ksmbd
with iwarp.
Thanks!
metze
More information about the samba-technical
mailing list