]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: smbdirect: change smbdirect_socket_parameters.{initiator_depth,responder_resourc...
authorStefan Metzmacher <metze@samba.org>
Tue, 7 Apr 2026 14:46:27 +0000 (16:46 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 16 Apr 2026 02:58:24 +0000 (21:58 -0500)
commit735610d0cefa9e44b28498b53706ed2ebac3be27
treee8a4d7747ffafc2aecbb61f7144ecb1f2c9e7313
parentaa43bb2c0fc0d928bb120f853349c8affcfeb8b4
smb: smbdirect: change smbdirect_socket_parameters.{initiator_depth,responder_resources} to __u16

We still limit this to U8_MAX as the rdma api only uses __u8
and that's also the limit for Infiniband and RoCE*,
while iWarp would be able to support larger values at
the protocol level.

As struct smbdirect_socket_parameters will be part
of the uapi for IPPROTO_SMBDIRECT in future, change it
now even if userspace sockets won't be supported yet.

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: David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Acked-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/smbdirect/smbdirect.h
fs/smb/common/smbdirect/smbdirect_socket.c