IB/usnic: Support more QP state transitions
authorNelson Escobar <neescoba@cisco.com>
Wed, 9 Dec 2015 18:42:17 +0000 (10:42 -0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 15:50:58 +0000 (10:50 -0500)
commit89e5323c644e0b52f8b81b8e77a71e0d447f8c16
treef1824d086ad935406eb325c1cc801c906fe1566e
parent2547a3663c5e765dfdc87009afde80643f586efe
IB/usnic: Support more QP state transitions

They were already implemented at a lower layer, but the upper level
routine placed arbitrary restrictions on which transitions were
permitted.  Simplify the state machine logic to live wholly in
usnic_ib_qp_grp_modify.

Signed-off-by: Dave Goodell <dgoodell@cisco.com>
Reviewed-by: Reese Faucette <rfaucett@cisco.com>
Reviewed-by: Xuyang Wang <xuywang@cisco.com>
Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/usnic/usnic_ib_verbs.c