]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
smb: smbdirect: add SMBDIRECT_RECV_IO_MAX_SGE
authorStefan Metzmacher <metze@samba.org>
Wed, 6 Aug 2025 17:35:48 +0000 (19:35 +0200)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Aug 2025 20:18:58 +0000 (15:18 -0500)
This will allow the client and server specific defines to be
replaced.

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>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/smbdirect/smbdirect_socket.h

index 3ae834ca3af1164b6c1b0827392d463f05f49360..7270fcee1048c4d374450656e695c3594035cedb 100644 (file)
@@ -92,6 +92,13 @@ struct smbdirect_socket {
 struct smbdirect_recv_io {
        struct smbdirect_socket *socket;
        struct ib_cqe cqe;
+
+       /*
+        * For now we only use a single SGE
+        * as we have just one large buffer
+        * per posted recv.
+        */
+#define SMBDIRECT_RECV_IO_MAX_SGE 1
        struct ib_sge sge;
 
        /* Link to free or reassembly list */