]> git.baikalelectronics.ru Git - kernel.git/commit
iw_cxgb4: Atomically flush per QP HW CQEs
authorBharat Potnuri <bharat@chelsio.com>
Fri, 27 Apr 2018 11:11:16 +0000 (16:41 +0530)
committerDoug Ledford <dledford@redhat.com>
Fri, 27 Apr 2018 18:38:44 +0000 (14:38 -0400)
commit69c9089751dcc1e3aeff62e84feb0e46d9614aeb
treeb2f6622d07fb37ddb5501cddd377aeacdab72c6f
parentf37d731db5c59d8ec00ae08798ffef5d5d0ced59
iw_cxgb4: Atomically flush per QP HW CQEs

When a CQ is shared by multiple QPs, c4iw_flush_hw_cq() needs to acquire
corresponding QP lock before moving the CQEs into its corresponding SW
queue and accessing the SQ contents for completing a WR.
Ignore CQEs if corresponding QP is already flushed.

Cc: stable@vger.kernel.org
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cq.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
drivers/infiniband/hw/cxgb4/qp.c