]> git.baikalelectronics.ru Git - kernel.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)
commit8121af0959d8b054196540881b29833c544c2fb6
tree43a9f6bc4ccd3b586c0786828da9b7dfa8775e20
parent50cf0ce29c98028b4695ec4c96b822865b32d534
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: 06590602b112 ("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