summary refs log tree commit diff
path: root/ipc
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@intel.com>2017-05-12 09:20:31 -0700
committerDoug Ledford <dledford@redhat.com>2017-06-27 16:56:33 -0400
commit14fe13fcd3afb96b06809f280b586be1c998332c (patch)
treecf713910a88e99f3264dd3a28c041659b7b5c983 /ipc
parent9039746cdf39dcbf2ddfcc4a68f729cbbbc853df (diff)
downloadlinux-14fe13fcd3afb96b06809f280b586be1c998332c.tar.gz
IB/rdmavt: Compress adjacent SGEs in rvt_lkey_ok()
SGEs that are contiguous needlessly consume driver dependent TX resources.

The lkey validation logic is enhanced to compress the SGE that ends
up in the send wqe when consecutive addresses are detected.

The lkey validation API used to return 1 (success) or 0 (fail).

The return value is now an -errno, 0 (compressed), or 1 (uncompressed).  A
additional argument is added to pass the last SQE for the compression.

Loopback callers always pass a NULL to last_sge since the optimization is
of little benefit in that situation.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Brian Welty <brian.welty@intel.com>
Signed-off-by: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions