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.
Showing the changes to include/uapi/linux (1 of 6 files). Show all
Unified · Split
| @@ -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 | ||
| 235 | struct br_mrp_ring_state { | 237 | struct br_mrp_ring_state { |