History

bridge: uapi: mrp: Extend MRP attributes to get the status

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.

Horatiu Vultur committed 6 years ago

Commit e4266b91 parent 23212a71 file · +17 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/if_bridge.h+17−0
@@ -166,6 +166,7 @@ enum { · 165 unmodified lines
166166 IFLA_BRIDGE_MRP_RING_STATE,
167167 IFLA_BRIDGE_MRP_RING_ROLE,
168168 IFLA_BRIDGE_MRP_START_TEST,
169+ IFLA_BRIDGE_MRP_INFO,
169170 __IFLA_BRIDGE_MRP_MAX,
170171 };
171172
@@ -228,6 +229,22 @@ enum { · 56 unmodified lines
228229
229230 #define IFLA_BRIDGE_MRP_START_TEST_MAX (__IFLA_BRIDGE_MRP_START_TEST_MAX - 1)
230231
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+
231248 struct br_mrp_instance {
232249 __u32 ring_id;
233250 __u32 p_ifindex;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t