diff mbox series

[v2,2/6] Decrease the number of SMB3 smbdirect server SGEs

Message ID c16ac0947a26d94ff084512b305bd525c93f6bec.1663961449.git.tom@talpey.com (mailing list archive)
State New, archived
Headers show
Series Reduce SMBDirect RDMA SGE counts and sizes | expand

Commit Message

Tom Talpey Sept. 23, 2022, 9:53 p.m. UTC
The server-side SMBDirect layer requires no more than 6 send SGEs
The previous default of 8 causes ksmbd to fail on the SoftiWARP
(siw) provider, and possibly others. Additionally, large numbers
of SGEs reduces performance significantly on adapter implementations.

Signed-off-by: Tom Talpey <tom@talpey.com>
---
 fs/ksmbd/transport_rdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Namjae Jeon Sept. 27, 2022, 12:37 a.m. UTC | #1
2022-09-24 6:53 GMT+09:00, Tom Talpey <tom@talpey.com>:
> The server-side SMBDirect layer requires no more than 6 send SGEs
> The previous default of 8 causes ksmbd to fail on the SoftiWARP
> (siw) provider, and possibly others. Additionally, large numbers
> of SGEs reduces performance significantly on adapter implementations.
>
> Signed-off-by: Tom Talpey <tom@talpey.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>

Thanks!
diff mbox series

Patch

diff --git a/fs/ksmbd/transport_rdma.c b/fs/ksmbd/transport_rdma.c
index 35b55ee94fe5..494b8e5af4b3 100644
--- a/fs/ksmbd/transport_rdma.c
+++ b/fs/ksmbd/transport_rdma.c
@@ -32,7 +32,7 @@ 
 /* SMB_DIRECT negotiation timeout in seconds */
 #define SMB_DIRECT_NEGOTIATE_TIMEOUT		120
 
-#define SMB_DIRECT_MAX_SEND_SGES		8
+#define SMB_DIRECT_MAX_SEND_SGES		6
 #define SMB_DIRECT_MAX_RECV_SGES		1
 
 /*