IB/mthca: Don't execute QUERY_QP firmware command for QP in RESET state
authorDotan Barak <dotanb@dev.mellanox.co.il>
Wed, 27 Dec 2006 13:46:06 +0000 (15:46 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 9 Jan 2007 22:14:28 +0000 (14:14 -0800)
commitf5e10529a9a835a267f6aa7806e291d6df845e14
treeb3b1fcd83d891da9046d68f57b0341863dadc3ad
parentf2d9136133de257abbd97fec6f624d3a73d1e1fd
IB/mthca: Don't execute QUERY_QP firmware command for QP in RESET state

If a QP being queried is in the RESET state, don't execute the
QUERY_QP firmware command (because it will fail).

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c