Skip to content

Commit

Permalink
ksmbd: decrease the number of SMB3 smbdirect server SGEs
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Steve French <stfrench@microsoft.com>
  • Loading branch information
TTalpey authored and Steve French committed Oct 5, 2022
1 parent b1763d2 commit 2b4eeea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ksmbd/transport_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down

0 comments on commit 2b4eeea

Please sign in to comment.