diff options
| author | Stefan Metzmacher <metze@samba.org> | 2025-08-06 19:36:02 +0200 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-09-28 18:29:51 -0500 |
| commit | ea20d02842c8f38ed36045b46d8e95bcfa0514f2 (patch) | |
| tree | 91e3a6f5c98af69838a6a2561cf595e10be8cb09 | |
| parent | bdb0f1596ae537535a0cebc2911b07ff264c3099 (diff) | |
| download | linux-ea20d02842c8f38ed36045b46d8e95bcfa0514f2.tar.gz linux-ea20d02842c8f38ed36045b46d8e95bcfa0514f2.zip | |
smb: server: make use of SMBDIRECT_RECV_IO_MAX_SGE
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
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>
| -rw-r--r-- | fs/smb/server/transport_rdma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/smb/server/transport_rdma.c b/fs/smb/server/transport_rdma.c index 7853b3b4d8da..b027382c554e 100644 --- a/fs/smb/server/transport_rdma.c +++ b/fs/smb/server/transport_rdma.c @@ -37,7 +37,6 @@ #define SMB_DIRECT_NEGOTIATE_TIMEOUT 120 #define SMB_DIRECT_MAX_SEND_SGES 6 -#define SMB_DIRECT_MAX_RECV_SGES 1 /* * Default maximum number of RDMA read/write outstanding on this connection @@ -1834,7 +1833,7 @@ static int smb_direct_init_params(struct smb_direct_transport *t, device->attrs.max_send_sge); return -EINVAL; } - if (device->attrs.max_recv_sge < SMB_DIRECT_MAX_RECV_SGES) { + if (device->attrs.max_recv_sge < SMBDIRECT_RECV_IO_MAX_SGE) { pr_err("warning: device max_recv_sge = %d too small\n", device->attrs.max_recv_sge); return -EINVAL; @@ -1858,7 +1857,7 @@ static int smb_direct_init_params(struct smb_direct_transport *t, cap->max_send_wr = max_send_wrs; cap->max_recv_wr = sp->recv_credit_max; cap->max_send_sge = SMB_DIRECT_MAX_SEND_SGES; - cap->max_recv_sge = SMB_DIRECT_MAX_RECV_SGES; + cap->max_recv_sge = SMBDIRECT_RECV_IO_MAX_SGE; cap->max_inline_data = 0; cap->max_rdma_ctxs = t->max_rw_credits; return 0; |
