OpenCloudOS-Kernel/drivers/infiniband/hw/mlx5
Aharon Landau 2d7e3ff7b6 RDMA/mlx5: Set GRH fields in query QP on RoCE
GRH fields such as sgid_index, hop limit, et. are set in the QP context
when QP is created/modified.

Currently, when query QP is performed, we fill the GRH fields only if the
GRH bit is set in the QP context, but this bit is not set for RoCE. Adjust
the check so we will set all relevant data for the RoCE too.

Since this data is returned to userspace, the below is an ABI regression.

Fixes: d8966fcd4c ("IB/core: Use rdma_ah_attr accessor functions")
Link: https://lore.kernel.org/r/20200413132028.930109-1-leon@kernel.org
Signed-off-by: Aharon Landau <aharonl@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-04-22 15:43:46 -03:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile IB/mlx5: Introduce UAPIs to manage packet pacing 2020-03-10 11:53:52 -03:00
ah.c RDMA: Handle AH allocations by IB/core 2019-04-08 13:05:25 -03:00
cmd.c IB/mlx5: Fix device memory flows 2019-12-12 16:55:36 -05:00
cmd.h IB/mlx5: Fix device memory flows 2019-12-12 16:55:36 -05:00
cong.c IB/mlx5: Add np_min_time_between_cnps and rp_max_rate debug params 2020-03-04 14:20:03 -04:00
cq.c RDMA 5.7 pull request 2020-04-01 18:18:18 -07:00
devx.c RDMA/mlx5: Fix async events cleanup flows 2020-02-13 09:48:17 -04:00
doorbell.c IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
flow.c RDMA/mlx5: Add support for RDMA TX flow table 2020-03-27 13:24:48 -03:00
gsi.c IB/mlx5: Fix outstanding_pi index for GSI qps 2020-01-03 15:56:41 -04:00
ib_rep.c IB/mlx5: Rename profile and init methods 2019-11-11 12:15:29 -08:00
ib_rep.h IB/mlx5: Rename profile and init methods 2019-11-11 12:15:29 -08:00
ib_virt.c IB/mlx5: Return the administrative GUID if exists 2020-01-25 14:54:39 -04:00
mad.c RDMA: Change MAD processing function to remove extra casting and parameter 2019-11-12 20:20:15 -04:00
main.c RDMA 5.7 pull request 2020-04-01 18:18:18 -07:00
mem.c IB/mlx5: Generally use the WC auto detection test result 2020-03-24 20:22:21 -03:00
mlx5_ib.h RDMA 5.7 pull request 2020-04-01 18:18:18 -07:00
mr.c RDMA/mlx5: Allow MRs to be created in the cache synchronously 2020-03-13 11:08:02 -03:00
odp.c Merge branch 'mlx5_mr_cache' into rdma.git for-next 2020-03-13 11:11:07 -03:00
qos.c IB/mlx5: Fix a NULL vs IS_ERR() check 2020-03-24 19:47:55 -03:00
qp.c RDMA/mlx5: Set GRH fields in query QP on RoCE 2020-04-22 15:43:46 -03:00
restrack.c RDMA/nldev: Provide MR statistics 2019-10-22 15:33:31 -03:00
srq.c IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
srq.h RDMA: Handle SRQ allocations by IB/core 2019-04-08 13:05:25 -03:00
srq_cmd.c mlx5: Use refcount_t for refcount 2019-08-07 11:01:48 -07:00