Add MRP attribute IFLA_BRIDGE_MRP_INFO to allow the userspace to get the current state of the MRP instances. This is a nested attribute that contains other attributes like, ring id, index of primary and secondary port, priority, ring state, ring role.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -166,6 +166,7 @@ enum { · 165 unmodified lines | ||
| 166 | 166 | IFLA_BRIDGE_MRP_RING_STATE, |
| 167 | 167 | IFLA_BRIDGE_MRP_RING_ROLE, |
| 168 | 168 | IFLA_BRIDGE_MRP_START_TEST, |
| 169 | + IFLA_BRIDGE_MRP_INFO, | |
| 169 | 170 | __IFLA_BRIDGE_MRP_MAX, |
| 170 | 171 | }; |
| 171 | 172 | |
| @@ -228,6 +229,22 @@ enum { · 56 unmodified lines | ||
| 228 | 229 | |
| 229 | 230 | #define IFLA_BRIDGE_MRP_START_TEST_MAX (__IFLA_BRIDGE_MRP_START_TEST_MAX - 1) |
| 230 | 231 | |
| 232 | +enum { | |
| 233 | + IFLA_BRIDGE_MRP_INFO_UNSPEC, | |
| 234 | + IFLA_BRIDGE_MRP_INFO_RING_ID, | |
| 235 | + IFLA_BRIDGE_MRP_INFO_P_IFINDEX, | |
| 236 | + IFLA_BRIDGE_MRP_INFO_S_IFINDEX, | |
| 237 | + IFLA_BRIDGE_MRP_INFO_PRIO, | |
| 238 | + IFLA_BRIDGE_MRP_INFO_RING_STATE, | |
| 239 | + IFLA_BRIDGE_MRP_INFO_RING_ROLE, | |
| 240 | + IFLA_BRIDGE_MRP_INFO_TEST_INTERVAL, | |
| 241 | + IFLA_BRIDGE_MRP_INFO_TEST_MAX_MISS, | |
| 242 | + IFLA_BRIDGE_MRP_INFO_TEST_MONITOR, | |
| 243 | + __IFLA_BRIDGE_MRP_INFO_MAX, | |
| 244 | +}; | |
| 245 | + | |
| 246 | +#define IFLA_BRIDGE_MRP_INFO_MAX (__IFLA_BRIDGE_MRP_INFO_MAX - 1) | |
| 247 | + | |
| 231 | 248 | struct br_mrp_instance { |
| 232 | 249 | __u32 ring_id; |
| 233 | 250 | __u32 p_ifindex; |