| From linkinjeon@gmail.com Mon Dec 18 16:38:31 2023 |
| From: Namjae Jeon <linkinjeon@kernel.org> |
| Date: Tue, 19 Dec 2023 00:33:18 +0900 |
| Subject: ksmbd: decrease the number of SMB3 smbdirect server SGEs |
| To: gregkh@linuxfoundation.org, stable@vger.kernel.org |
| Cc: smfrench@gmail.com, Tom Talpey <tom@talpey.com>, Namjae Jeon <linkinjeon@kernel.org>, Steve French <stfrench@microsoft.com> |
| Message-ID: <20231218153454.8090-59-linkinjeon@kernel.org> |
| |
| From: Tom Talpey <tom@talpey.com> |
| |
| [ Upstream commit 2b4eeeaa90617c5e37da7c804c422b4e833b87b2 ] |
| |
| 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> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| --- |
| fs/ksmbd/transport_rdma.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- 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 |
| |
| /* |