Decrease the number of SMB3 smbdirect client SGEs
authorTom Talpey <tom@talpey.com>
Fri, 23 Sep 2022 21:53:55 +0000 (21:53 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 5 Oct 2022 06:29:21 +0000 (01:29 -0500)
commitd2e81f92e5b76c4c260141928700442876fa4bb3
tree96e66dd7a85425bf694429c8d371a8a923f3e4da
parente98ecc6e94f4e6d21c06660b0f336df02836694f
Decrease the number of SMB3 smbdirect client SGEs

The client-side SMBDirect layer requires no more than 6 send SGEs
and 1 receive SGE. The previous default of 8 send and 8 receive
causes smbdirect to fail on the SoftiWARP (siw) provider, and
possibly others. Additionally, large numbers of SGEs reduces
performance significantly on adapter implementations.

Also correct the frmr page count comment (not an SGE count).

Acked-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smbdirect.c
fs/cifs/smbdirect.h