]> git.ipfire.org Git - people/ms/linux.git/commit
IB/rdmavt: Fix loopback send with invalidate ordering
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 26 Feb 2019 16:45:16 +0000 (08:45 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Mar 2019 19:47:23 +0000 (15:47 -0400)
commit38bbc9f0381550d1d227fc57afa08436e36b32fc
treebd1a0be1d3e8ea3d672f7fd289e5ba5b5425116e
parentc1545f1a200f4adc4ef8dd534bf33e2f1aa22c2f
IB/rdmavt: Fix loopback send with invalidate ordering

The IBTA spec notes:

o9-5.2.1: For any HCA which supports SEND with Invalidate, upon receiving
an IETH, the Invalidate operation must not take place until after the
normal transport header validation checks have been successfully
completed.

The rdmavt loopback code does the validation after the invalidate.

Fix by relocating the operation specific logic for all SEND variants until
after the validity checks.

Cc: <stable@vger.kernel.org> #v4.20+
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: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rdmavt/qp.c