OSDN Git Service

IB/ipoib: Notify on modify QP failure only when relevant
authorErez Shitrit <erezsh@mellanox.com>
Thu, 13 Jul 2017 11:29:08 +0000 (14:29 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sun, 23 Jul 2017 07:52:00 +0000 (10:52 +0300)
commit5dc78ad1904db597bdb4427f3ead437aae86f54c
treefad5bec2f1964683798e90535610e4a55823632b
parentb287b76e89503ef1d403cc5cc8bd74b035d25bfa
IB/ipoib: Notify on modify QP failure only when relevant

Modify QP can fail and it can be acceptable, like when moving from RST to
ERR state, all the rest are not acceptable and a message to the log
should be printed.

The current code prints on all failures and many messages like:
"Failed to modify QP to ERROR state" appear, even when supported by the
state machine of the QP object.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/ipoib/ipoib_ib.c