linux/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
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
efa-abi.h
erdma-abi.h
hns-abi.h RDMA/hns: Support SRQ record doorbell 2023-10-02 11:47:08 +03:00
ib_user_ioctl_cmds.h
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
ib_user_sa.h
ib_user_verbs.h
irdma-abi.h RDMA/irdma: Use HW specific minimum WQ size 2023-07-30 15:43:00 +03:00
mana-abi.h
mlx4-abi.h
mlx5-abi.h
mlx5_user_ioctl_cmds.h
mlx5_user_ioctl_verbs.h
mthca-abi.h
ocrdma-abi.h
qedr-abi.h
rdma_netlink.h RDMA/core: Add support to set privileged QKEY parameter 2023-10-19 09:31:00 +03:00
rdma_user_cm.h
rdma_user_ioctl.h
rdma_user_ioctl_cmds.h
rdma_user_rxe.h
rvt-abi.h
siw-abi.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
vmw_pvrdma-abi.h