linux/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
Makefile IB/mlx5: Introduce UAPIs to manage packet pacing 2020-03-10 11:53:52 -03:00
ah.c
cmd.c
cmd.h
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_rep.c
ib_rep.h
ib_virt.c IB/mlx5: Return the administrative GUID if exists 2020-01-25 14:54:39 -04:00
mad.c
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
srq.c IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
srq.h
srq_cmd.c