IB: Fix modify QP checking of "current QP state" attribute
authorDotan Barak <dotanb@mellanox.co.il>
Thu, 2 Mar 2006 19:22:28 +0000 (11:22 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:20 +0000 (10:08 -0800)
commit4546d31d84beafe74c56651173ac4fe197c7de8b
tree5196b616386b05c4a64ce8e70e78ca5e2b27fbb2
parent9acf6a8570dcfc9f55724b8b71099fc8768e8c26
IB: Fix modify QP checking of "current QP state" attribute

According to the IB spec version 1.2, section 11.2.4.2, the current
table has a couple of mistakes where it allows the current QP state
(IB_QP_CUR_STATE) attribute.  For the transitions:

  RTS -> RTS: IB_QP_CUR_STATE should be allowed for all transports
  SQD -> SQD: IB_QP_CUR_STATE should never be allowed

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