]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: smbdirect: let smbdirect_socket_set_initial_parameters() call rdma_restrict_node...
authorStefan Metzmacher <metze@samba.org>
Thu, 18 Dec 2025 19:54:25 +0000 (20:54 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 16 Apr 2026 02:58:20 +0000 (21:58 -0500)
commitede2b44b0e62378cb8585dda20a4edadbc621bb0
tree52efaed54e1e2d1be19348d279f307fd514e81ce
parentdce268ffcddc96f29707c1967c52b036ad92e43d
smb: smbdirect: let smbdirect_socket_set_initial_parameters() call rdma_restrict_node_type()

We allow the caller of smbdirect_socket_set_initial_parameters() to pass
SMBDIRECT_FLAG_PORT_RANGE_ONLY_{IB,IW} in order to restrict
the rdma devices for the listener or connection to either
iWarp (RDMA_NODE_RNIC) or InfiniBand/RoCEv1/RoCEv2 (RDMA_NODE_IB_CA).

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
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/common/smbdirect/smbdirect.h
fs/smb/common/smbdirect/smbdirect_socket.c