]> git.baikalelectronics.ru Git - kernel.git/commit
iw_cxgb4: add queue drain functions
authorSteve Wise <swise@opengridcomputing.com>
Wed, 17 Feb 2016 16:15:42 +0000 (08:15 -0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Feb 2016 22:10:27 +0000 (17:10 -0500)
commit8c41af1c3f2c37015e59cc2ce47b047967735d35
tree20dc645465f0115f6bf77990929cab1ef371ad83
parentda21bd393b2808320e70fce90b5e846f6c446654
iw_cxgb4: add queue drain functions

Add completion objects, named sq_drained and rq_drained, to the c4iw_qp
struct.  The queue-specific completion object is signaled when the last
CQE is drained from the CQ for that queue.

Add c4iw_drain_sq() to block until qp->rq_drained is completed.

Add c4iw_drain_rq() to block until qp->sq_drained is completed.

Signed-off-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/provider.c
drivers/infiniband/hw/cxgb4/qp.c