diff options
author | Mike Marciniszyn <mike.marciniszyn@intel.com> | 2019-06-13 08:30:44 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-06-20 22:35:09 -0400 |
commit | f56044d686c82bd31713fc0398d68e322813dc62 (patch) | |
tree | 8cd490814fcc8812875c395d74bc2f6bce490449 /include/net | |
parent | dd82e668892ead6fe97c97eabd7ba28e296052c6 (diff) | |
download | linux-f56044d686c82bd31713fc0398d68e322813dc62.tar.gz linux-f56044d686c82bd31713fc0398d68e322813dc62.tar.bz2 linux-f56044d686c82bd31713fc0398d68e322813dc62.zip |
IB/rdmavt: Add new completion inline
There is opencoded send completion logic all over all
the drivers.
We need to convert to this routine to enforce ordering
issues for completions. This routine fixes an ordering
issue where the read of the SWQE fields necessary for creating
the completion can race with a post send if the post send catches
a send queue at the edge of being full. Is is possible in that situation
to read SWQE fields that are being written.
This new routine insures that SWQE fields are read prior to advancing
the index that post send uses to determine queue fullness.
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@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 'include/net')
0 files changed, 0 insertions, 0 deletions