]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:44:51 +0000 (09:44 -0600)
commit126797a71d77df184535a3e3d4729a341cdf6829
treed46098113a339b2fdc1ebe6f5016badd0054b3ea
parentf8c85d075fc021c8d64eae9d9d21647452f06a84
IB/core: Perform modify QP on real one

BugLink: https://bugs.launchpad.net/bugs/1836968
commit b2bedfb39541a7e14798d066b6f8685d84c8fcf5 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/infiniband/core/verbs.c