[RFC iproute2-next 1/4] rdma: Update uapi header

Michael Guralnik
2024-09-01T00:55:32Z

From: Chiara Meiohas <cmeiohas@nvidia.com>

Signed-off-by: Chiara Meiohas <cmeiohas@nvidia.com>
Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
---
rdma/include/uapi/rdma/rdma_netlink.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

diff --git a/rdma/include/uapi/rdma/rdma_netlink.h b/rdma/include/uapi/rdma/rdma_netlink.h
index a6aadb1e..d9337f1e 100644
--- a/rdma/include/uapi/rdma/rdma_netlink.h
+++ b/rdma/include/uapi/rdma/rdma_netlink.h
@@ -15,6 +15,7 @@ enum {
enum {
RDMA_NL_GROUP_IWPM = 2,
RDMA_NL_GROUP_LS,
+ RDMA_NL_GROUP_NOTIFY,
RDMA_NL_NUM_GROUPS
};

@@ -305,6 +306,8 @@ enum rdma_nldev_command {

RDMA_NLDEV_CMD_DELDEV,

+ RDMA_NLDEV_CMD_MONITOR,
+
RDMA_NLDEV_NUM_OPS
};

@@ -574,6 +577,10 @@ enum rdma_nldev_attr {

RDMA_NLDEV_ATTR_NAME_ASSIGN_TYPE, /* u8 */

+ RDMA_NLDEV_ATTR_EVENT_TYPE, /* u8 */
+
+ RDMA_NLDEV_SYS_ATTR_MONITOR_MODE, /* u8 */
+
/*
* Always the end
*/
@@ -624,4 +631,14 @@ enum rdma_nl_name_assign_type {
RDMA_NAME_ASSIGN_TYPE_USER = 1, /* Provided by user-space */
};

+/*
+ * Supported monitored event types.
+ */
+enum rdma_nl_event_type {
+ RDMA_REGISTER_EVENT,
+ RDMA_UNREGISTER_EVENT,
+ RDMA_NETDEV_ATTACH_EVENT,
+ RDMA_NETDEV_DETACH_EVENT,
+};
+
#endif /* _RDMA_NETLINK_H */
--
2.17.2