linux-stable/include/uapi
Aharon Landau dd1db66844 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-24 09:57:47 +02:00
..
asm-generic tools: Fixed MIPS builds due to struct flock re-definition 2022-07-20 12:55:33 +02:00
drm drm/fourcc: fix integer type usage in uapi header 2022-06-29 14:50:51 -04:00
linux xfrm: fix XFRMA_LASTUSED comment 2022-09-28 11:32:00 +02:00
misc habanalabs: add support for notification via eventfd 2022-05-22 21:01:20 +02:00
mtd
rdma RDMA/mlx5: Don't compare mkey tags in DEVX indirect mkey 2022-10-24 09:57:47 +02:00
scsi
sound
video
xen
Kbuild