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
176 IFLA_BRIDGE_MRP_INSTANCE_RING_ID,176 IFLA_BRIDGE_MRP_INSTANCE_RING_ID,
177 IFLA_BRIDGE_MRP_INSTANCE_P_IFINDEX,177 IFLA_BRIDGE_MRP_INSTANCE_P_IFINDEX,
178 IFLA_BRIDGE_MRP_INSTANCE_S_IFINDEX,178 IFLA_BRIDGE_MRP_INSTANCE_S_IFINDEX,
179 IFLA_BRIDGE_MRP_INSTANCE_PRIO,
179 __IFLA_BRIDGE_MRP_INSTANCE_MAX,180 __IFLA_BRIDGE_MRP_INSTANCE_MAX,
180};181};
181 182
@@ -230,6 +231,7 @@ struct br_mrp_instance { · 48 unmodified lines
230 __u32 ring_id;231 __u32 ring_id;
231 __u32 p_ifindex;232 __u32 p_ifindex;
232 __u32 s_ifindex;233 __u32 s_ifindex;
234 __u16 prio;
233};235};
234 236
235struct br_mrp_ring_state {237struct br_mrp_ring_state {