summaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/rdma_netlink.h
diff options
context:
space:
mode:
authorMark Zhang <markzhang@nvidia.com>2024-06-16 18:08:40 +0200
committerLeon Romanovsky <leonro@nvidia.com>2024-07-01 14:38:05 +0200
commit060c642b2ab8b40b39f9db99c1d14c7d19ba507f (patch)
treec9ff2ae8759cafa31861915d0f32c252c2e34db7 /include/uapi/rdma/rdma_netlink.h
parentRDMA/mlx5: Support plane device and driver APIs to add and delete it (diff)
downloadlinux-060c642b2ab8b40b39f9db99c1d14c7d19ba507f.tar.xz
linux-060c642b2ab8b40b39f9db99c1d14c7d19ba507f.zip
RDMA/nldev: Add support to add/delete a sub IB device through netlink
Add new netlink commands and attributes to support adding and deleting a sub IB device with admin privilege. Examples: $ rdma dev add smi1 type SMI parent ibp8s0f1 $ rdma dev del smi1 Signed-off-by: Mark Zhang <markzhang@nvidia.com> Link: https://lore.kernel.org/r/77cbf1b36359642be8a8d8c5c2f4e585b544282f.1718553901.git.leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'include/uapi/rdma/rdma_netlink.h')
-rw-r--r--include/uapi/rdma/rdma_netlink.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/rdma/rdma_netlink.h b/include/uapi/rdma/rdma_netlink.h
index d15ee16be722..bd52fb325e22 100644
--- a/include/uapi/rdma/rdma_netlink.h
+++ b/include/uapi/rdma/rdma_netlink.h
@@ -301,6 +301,10 @@ enum rdma_nldev_command {
RDMA_NLDEV_CMD_RES_SRQ_GET_RAW,
+ RDMA_NLDEV_CMD_NEWDEV,
+
+ RDMA_NLDEV_CMD_DELDEV,
+
RDMA_NLDEV_NUM_OPS
};
@@ -564,6 +568,8 @@ enum rdma_nldev_attr {
*/
RDMA_NLDEV_ATTR_RES_SUBTYPE, /* string */
+ RDMA_NLDEV_ATTR_DEV_TYPE, /* u8 */
+
/*
* Always the end
*/