summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/irdma/i40iw_if.c
diff options
context:
space:
mode:
authorSindhu Devale <sindhu.devale@intel.com>2021-09-16 14:12:19 -0500
committerJason Gunthorpe <jgg@nvidia.com>2021-09-20 14:13:22 -0300
commit5b1e985f7626307c451f98883f5e2665ee208e1c (patch)
tree587541eeb7fc97343262943bb26fc248eada0f6b /drivers/infiniband/hw/irdma/i40iw_if.c
parentebcc36ea1960d79406d417cb6b107946da8b5210 (diff)
RDMA/irdma: Skip CQP ring during a reset
Due to duplicate reset flags, CQP commands are processed during reset. This leads CQP failures such as below: irdma0: [Delete Local MAC Entry Cmd Error][op_code=49] status=-27 waiting=1 completion_err=0 maj=0x0 min=0x0 Remove the redundant flag and set the correct reset flag so CPQ is paused during reset Fixes: 8498a30e1b94 ("RDMA/irdma: Register auxiliary driver and implement private channel OPs") Link: https://lore.kernel.org/r/20210916191222.824-2-shiraz.saleem@intel.com Reported-by: LiLiang <liali@redhat.com> Signed-off-by: Sindhu Devale <sindhu.devale@intel.com> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/irdma/i40iw_if.c')
-rw-r--r--drivers/infiniband/hw/irdma/i40iw_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/irdma/i40iw_if.c b/drivers/infiniband/hw/irdma/i40iw_if.c
index bddf88194d09..d219f64b2c3d 100644
--- a/drivers/infiniband/hw/irdma/i40iw_if.c
+++ b/drivers/infiniband/hw/irdma/i40iw_if.c
@@ -55,7 +55,7 @@ static void i40iw_close(struct i40e_info *cdev_info, struct i40e_client *client,
iwdev = to_iwdev(ibdev);
if (reset)
- iwdev->reset = true;
+ iwdev->rf->reset = true;
iwdev->iw_status = 0;
irdma_port_ibevent(iwdev);