]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: Fix Send Work Entry state check while polling completions
authorSelvin Xavier <selvin.xavier@broadcom.com>
Mon, 25 Nov 2019 08:39:30 +0000 (00:39 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 Jan 2020 19:27:22 +0000 (15:27 -0400)
commit35cf87596d15b5f86a7f7713b285f5f1346db8b7
tree7d86eefa3ce36cb91f9ba7909158c02e7516636b
parent073e303c58d55777a23d3d3c2c8d0cefb85c3cdd
RDMA/bnxt_re: Fix Send Work Entry state check while polling completions

Some adapters need a fence Work Entry to handle retransmission.  Currently
the driver checks for this condition, only if the Send queue entry is
signalled. Implement the condition check, irrespective of the signalled
state of the Work queue entries

Failure to add the fence can result in access to memory that is already
marked as completed, triggering data corruption, transmission failure,
IOMMU failures, etc.

Fixes: 13af2a5aa3d1 ("RDMA/bnxt_re: HW workarounds for handling specific conditions")
Link: https://lore.kernel.org/r/1574671174-5064-3-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/qplib_fp.c