RDMA/cxgb4: Mark QP in error before disabling the queue in firmware
authorTom Tucker <tom@ogc.us>
Tue, 25 Oct 2011 11:08:30 +0000 (16:38 +0530)
committerRoland Dreier <roland@purestorage.com>
Mon, 31 Oct 2011 18:36:08 +0000 (11:36 -0700)
commitd32ae393dbf0daf778f9e33b0bc6591cd102391e
treea2f79e3e262ebb1454c737fc074e14b6f5e5a020
parent581bbe2cd0694a935e0c3ccd7f011e10094f1df6
RDMA/cxgb4: Mark QP in error before disabling the queue in firmware

QPs need to be moved to error before telling the firwmare to shutdown
the queue.  Otherwise, the application can submit WRs that will never
get fetched by the hardware and never flushed by the driver.

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Acked-by: Steve Wise <swsie@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/qp.c