History

bridge: mrp: Set the priority of MRP instance

Each MRP instance has a priority, a lower value means a higher priority. The priority of MRP instance is stored in MRP_Test frame in this way all the MRP nodes in the ring can see other nodes priority.

Horatiu Vultur committed 6 years ago

Commit 4b3a61b1 parent 7e89ed86 files · +12 −1Browse files

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

Unified · Split

include/uapi/linux/if_bridge.h+2−0
@@ -176,6 +176,7 @@ enum { · 175 unmodified lines
176176 IFLA_BRIDGE_MRP_INSTANCE_RING_ID,
177177 IFLA_BRIDGE_MRP_INSTANCE_P_IFINDEX,
178178 IFLA_BRIDGE_MRP_INSTANCE_S_IFINDEX,
179+ IFLA_BRIDGE_MRP_INSTANCE_PRIO,
179180 __IFLA_BRIDGE_MRP_INSTANCE_MAX,
180181 };
181182
@@ -230,6 +231,7 @@ struct br_mrp_instance { · 48 unmodified lines
230231 __u32 ring_id;
231232 __u32 p_ifindex;
232233 __u32 s_ifindex;
234+ __u16 prio;
233235 };
234236
235237 struct br_mrp_ring_state {