RDMA/hns: Don't overwrite supplied QP attributes
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 23 Jul 2021 11:39:44 +0000 (14:39 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 3 Aug 2021 16:44:26 +0000 (13:44 -0300)
commite66e49592b690d6abd537cc207b07a3db2f413d0
tree36b5c0a04a375f26401e04393b58cfb8d17394d2
parent4ffd3b800e9722ea44fc3755e72d026dd530dc4e
RDMA/hns: Don't overwrite supplied QP attributes

QP attributes that were supplied by IB/core already have all parameters
set when they are passed to the driver. The drivers are not supposed to
change anything in struct ib_qp_init_attr.

Fixes: 66d86e529dd5 ("RDMA/hns: Add UD support for HIP09")
Link: https://lore.kernel.org/r/5987138875e8ade9aa339d4db6e1bd9694ed4591.1627040189.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_qp.c