linux-stable/include/uapi/rdma
Patrisious Haddad 465d6b42f1 RDMA/core: Add support to set privileged QKEY parameter
Add netlink command that enables/disables privileged QKEY by default.

It is disabled by default, since according to IB spec only privileged
users are allowed to use privileged QKEY.
According to the IB specification rel-1.6, section 3.5.3:
"QKEYs with the most significant bit set are considered controlled
QKEYs, and a HCA does not allow a consumer to arbitrarily specify a
controlled QKEY."

Using rdma tool,
$rdma system set privileged-qkey on

When enabled non-privileged users would be able to use
controlled QKEYs which are considered privileged.

Using rdma tool,
$rdma system set privileged-qkey off

When disabled only privileged users would be able to use
controlled QKEYs.

You can also use the command below to check the parameter state:
$rdma system show
netns shared privileged-qkey off copy-on-fork on

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Link: https://lore.kernel.org/r/90398be70a9d23d2aa9d0f9fd11d2c264c1be534.1696848201.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2023-10-19 09:31:00 +03:00
..
hfi treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00
bnxt_re-abi.h RDMA/bnxt_re: Add a new uapi for driver notification 2023-07-21 16:15:33 -03:00
cxgb4-abi.h iw_cxgb4: RDMA write with immediate support 2018-08-02 20:16:02 -06:00
efa-abi.h RDMA/efa: Add rdma write capability to device caps 2023-04-21 19:18:58 -03:00
erdma-abi.h RDMA/erdma: Add the ABI definitions 2022-07-27 16:04:05 -03:00
hns-abi.h RDMA/hns: Support SRQ record doorbell 2023-10-02 11:47:08 +03:00
ib_user_ioctl_cmds.h RDMA/uverbs: Add uverbs command for dma-buf based MR registration 2021-01-20 16:07:52 -04:00
ib_user_ioctl_verbs.h IB/core: Add support for XDR link speed 2023-09-26 12:38:39 +03:00
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 RDMA: Extend RDMA user ABI to support flush 2022-12-09 19:36:01 -04:00
irdma-abi.h RDMA/irdma: Use HW specific minimum WQ size 2023-07-30 15:43:00 +03:00
mana-abi.h RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter 2022-11-11 11:40:09 +02:00
mlx4-abi.h
mlx5-abi.h RDMA/mlx5: Don't compare mkey tags in DEVX indirect mkey 2022-08-16 15:21:52 +03:00
mlx5_user_ioctl_cmds.h RDMA/mlx5: Add support for dmabuf to devx umem 2022-09-27 10:15:24 -03:00
mlx5_user_ioctl_verbs.h RDMA/mlx5: Support handling of modify-header pattern ICM area 2022-06-13 14:58:01 -07:00
mthca-abi.h
ocrdma-abi.h
qedr-abi.h RDMA/qedr: Add EDPM max size to alloc ucontext response 2020-07-16 16:01:55 -03:00
rdma_netlink.h RDMA/core: Add support to set privileged QKEY parameter 2023-10-19 09:31:00 +03:00
rdma_user_cm.h treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00
rdma_user_ioctl.h RDMA: rdma_user_ioctl.h: fix a duplicated word + clarify 2020-07-20 16:42:08 -03:00
rdma_user_ioctl_cmds.h treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00
rdma_user_rxe.h RDMA/rxe: Extend rxe user ABI to support flush 2022-12-09 19:36:01 -04:00
rvt-abi.h treewide: add "WITH Linux-syscall-note" to SPDX tag of uapi headers 2019-07-25 11:05:10 +02:00
siw-abi.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
vmw_pvrdma-abi.h RDMA/vmw_pvrdma: Fix network_hdr_type reported in WC 2021-01-19 20:17:27 -04:00