Handle variable number of SGEs in client smbdirect send.
authorTom Talpey <tom@talpey.com>
Fri, 23 Sep 2022 21:53:59 +0000 (21:53 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 5 Oct 2022 06:30:44 +0000 (01:30 -0500)
commitadeb964d3791e1eea8c4c3ab13549ccc7e411e07
treea00d09623b3c94c3fd2402ce64eb26c03d0b1fc1
parent3c62df55f3306238f36dc19cbe40b5e3d288d116
Handle variable number of SGEs in client smbdirect send.

If/when an outgoing request contains more scatter/gather segments
than can be mapped in a single RDMA send work request, use smbdirect
fragments to send it in multiple packets.

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