]> git.baikalelectronics.ru Git - kernel.git/commit
IB/rxe: Update qp state for user query
authorYonatan Cohen <yonatanc@mellanox.com>
Wed, 16 Nov 2016 08:39:18 +0000 (10:39 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Nov 2016 01:03:44 +0000 (20:03 -0500)
commitbd45142a430b6858335605060ce4cffd6e65abb3
tree455fb5bd1eeadf3572275aabcc57e47e4c1933c2
parent52e45276bcccddcf0796985b734160dcd67fc538
IB/rxe: Update qp state for user query

The method rxe_qp_error() transitions QP to error state
and make sure the QP is drained. It did not though update
the QP state for user's query.

This patch fixes this.

Fixes: 5deaf88696f1 ("Soft RoCE driver")
Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_qp.c