Message ID | 20240704062901.1906597-2-markzhang@nvidia.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | Supports to add/delete IB devices with type SMI | expand |
On Thu, Jul 04, 2024 at 09:29:00AM +0300, Mark Zhang wrote: > Update rdma_netlink.h file upto kernel commit 294424839b5e > ("RDMA/nldev: Add support to dump device type and parent device if exists") > > Signed-off-by: Mark Zhang <markzhang@nvidia.com> > --- > rdma/include/uapi/rdma/rdma_netlink.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > Thanks, Acked-by: Leon Romanovsky <leon@kernel.org>
diff --git a/rdma/include/uapi/rdma/rdma_netlink.h b/rdma/include/uapi/rdma/rdma_netlink.h index a6c8a52d..aea1d5ef 100644 --- a/rdma/include/uapi/rdma/rdma_netlink.h +++ b/rdma/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,10 @@ enum rdma_nldev_attr { */ RDMA_NLDEV_ATTR_RES_SUBTYPE, /* string */ + RDMA_NLDEV_ATTR_DEV_TYPE, /* u8 */ + + RDMA_NLDEV_ATTR_PARENT_NAME, /* string */ + /* * Always the end */ @@ -602,4 +610,9 @@ enum rdma_nl_counter_mask { RDMA_COUNTER_MASK_QP_TYPE = 1, RDMA_COUNTER_MASK_PID = 1 << 1, }; + +/* Supported rdma device types. */ +enum rdma_nl_dev_type { + RDMA_DEVICE_TYPE_SMI = 1, +}; #endif /* _RDMA_NETLINK_H */
Update rdma_netlink.h file upto kernel commit 294424839b5e ("RDMA/nldev: Add support to dump device type and parent device if exists") Signed-off-by: Mark Zhang <markzhang@nvidia.com> --- rdma/include/uapi/rdma/rdma_netlink.h | 13 +++++++++++++ 1 file changed, 13 insertions(+)