WSL2-Linux-Kernel/include/uapi/rdma
Aharon Landau c11f48764c RDMA/mlx5: Don't compare mkey tags in DEVX indirect mkey
[ Upstream commit 13ad1125b9 ]

According to the ib spec:
If the CI supports the Base Memory Management Extensions defined in this
specification, the L_Key format must consist of:
24 bit index in the most significant bits of the R_Key, and
8 bit key in the least significant bits of the R_Key
Through a successful Allocate L_Key verb invocation, the CI must let the
consumer own the key portion of the returned R_Key

Therefore, when creating a mkey using DEVX, the consumer is allowed to
change the key part. The kernel should compare only the index part of a
R_Key to determine equality with another R_Key.

Adding capability in order not to break backward compatibility.

Fixes: 534fd7aac5 ("IB/mlx5: Manage indirection mkey upon DEVX flow for ODP")
Link: https://lore.kernel.org/r/3d669aacea85a3a15c3b3b953b3eaba3f80ef9be.1659255945.git.leonro@nvidia.com
Signed-off-by: Aharon Landau <aharonl@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 12:35:03 +02:00
..
hfi
bnxt_re-abi.h RDMA/bnxt_re: Update ABI to pass wqe-mode to user space 2021-06-21 20:58:52 -03:00
cxgb4-abi.h
efa-abi.h
hns-abi.h
ib_user_ioctl_cmds.h
ib_user_ioctl_verbs.h
ib_user_mad.h RDMA/core: Use flexible array for mad data 2021-06-22 14:05:34 -03:00
ib_user_sa.h
ib_user_verbs.h
irdma-abi.h RDMA/irdma: Make spdxcheck.py happy 2021-07-12 14:52:25 -03:00
mlx4-abi.h
mlx5-abi.h RDMA/mlx5: Don't compare mkey tags in DEVX indirect mkey 2022-10-26 12:35:03 +02:00
mlx5_user_ioctl_cmds.h
mlx5_user_ioctl_verbs.h
mthca-abi.h
ocrdma-abi.h
qedr-abi.h
rdma_netlink.h
rdma_user_cm.h
rdma_user_ioctl.h
rdma_user_ioctl_cmds.h
rdma_user_rxe.h RDMA/rxe: Add bind MW fields to rxe_send_wr 2021-06-16 20:51:17 -03:00
rvt-abi.h
siw-abi.h
vmw_pvrdma-abi.h