diff options
author | Amrani, Ram <Ram.Amrani@cavium.com> | 2017-04-27 13:35:34 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-04-28 19:47:57 +0300 |
commit | 4dd72636c9e5a17b0d788ab1d8cc10ae25c69ea3 (patch) | |
tree | 0aafc09c8c122354242e7afecdc4711ce380f4bc /drivers/infiniband/hw/qedr/qedr.h | |
parent | 942b3b2c41196a24283dea3d87c83d2c4da99874 (diff) | |
download | linux-4dd72636c9e5a17b0d788ab1d8cc10ae25c69ea3.tar.xz |
RDMA/qedr: destroy CQ only after HW releases it
Wait for all relevant CNQ interrupts before freeing the CQ.
Don't invoke completion handlers for a destroyed CQ.
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/qedr/qedr.h')
-rw-r--r-- | drivers/infiniband/hw/qedr/qedr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qedr/qedr.h b/drivers/infiniband/hw/qedr/qedr.h index 5cb9195513bd..fc9e2797ac5a 100644 --- a/drivers/infiniband/hw/qedr/qedr.h +++ b/drivers/infiniband/hw/qedr/qedr.h @@ -272,6 +272,8 @@ struct qedr_cq { u32 cq_cons; struct qedr_userq q; + u8 destroyed; + u16 cnq_notif; }; struct qedr_pd { |