]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/core: Perform modify QP on real one
authorParav Pandit <parav@mellanox.com>
Tue, 9 Jan 2018 13:24:50 +0000 (15:24 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 15 Jan 2018 22:33:21 +0000 (15:33 -0700)
commitb2bedfb39541a7e14798d066b6f8685d84c8fcf5
tree43a9f6bc4ccd3b586c0786828da9b7dfa8775e20
parent4f9a3018a2bb09cadcc27bcf2d58000eb5f7e037
IB/core: Perform modify QP on real one

Currently qp->port stores the port number whenever IB_QP_PORT
QP attribute mask is set (during QP state transition to INIT state).
This port number should be stored for the real QP when XRC target QP
is used.

Follow the ib_modify_qp() implementation and hide the access to ->real_qp.

Fixes: a512c2fbef9c ("IB/core: Introduce modify QP operation with udata")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/verbs.c