cxgbe/iw_cxgbe: Implement sq/rq drain operation.
authornp <np@FreeBSD.org>
Fri, 3 Mar 2017 03:07:54 +0000 (03:07 +0000)
committernp <np@FreeBSD.org>
Fri, 3 Mar 2017 03:07:54 +0000 (03:07 +0000)
commit59a86e7558a68ca2240bbf0efdc2fccfcca84c59
tree0e2bbc095542d35d4c99b32b24bb26126eb3fc98
parent6b4d12ca9bcb36cd093b79633a820718824dc15e
cxgbe/iw_cxgbe: Implement sq/rq drain operation.

ULPs can set a qp's state to ERROR and then post a work request on the
sq and/or rq.  When the reply for that work request comes back it is
guaranteed that all previous work requests posted on that queue have
been drained.

Obtained from: Chelsio Communications
MFC after: 3 days
Sponsored by: Chelsio Communications
sys/dev/cxgbe/iw_cxgbe/cq.c
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
sys/dev/cxgbe/iw_cxgbe/qp.c
sys/dev/cxgbe/iw_cxgbe/t4.h