mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 12:10:38 -04:00
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>
This commit is contained in:
committed by
Leon Romanovsky
parent
026a425990
commit
060c642b2a
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user