diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2020-04-26 16:22:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-27 21:40:25 +0300 |
commit | 4b8d7d4c599182393421c190bae3604b4db9629a (patch) | |
tree | ac9c2848ff73913ed057a3e7b1779193ba0093af /include/linux/if_bridge.h | |
parent | 2cc974f83fb505751b7fbcf8dee27bdcc7054a7e (diff) | |
download | linux-4b8d7d4c599182393421c190bae3604b4db9629a.tar.xz |
bridge: mrp: Extend bridge interface
To integrate MRP into the bridge, first the bridge needs to be aware of ports
that are part of an MRP ring and which rings are on the bridge.
Therefore extend bridge interface with the following:
- add new flag(BR_MPP_AWARE) to the net bridge ports, this bit will be
set when the port is added to an MRP instance. In this way it knows if
the frame was received on MRP ring port
- add new flag(BR_MRP_LOST_CONT) to the net bridge ports, this bit will be set
when the port lost the continuity of MRP Test frames.
- add a list of MRP instances
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_bridge.h')
-rw-r--r-- | include/linux/if_bridge.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h index 9e57c4411734..b3a8d3054af0 100644 --- a/include/linux/if_bridge.h +++ b/include/linux/if_bridge.h @@ -47,6 +47,8 @@ struct br_ip_list { #define BR_BCAST_FLOOD BIT(14) #define BR_NEIGH_SUPPRESS BIT(15) #define BR_ISOLATED BIT(16) +#define BR_MRP_AWARE BIT(17) +#define BR_MRP_LOST_CONT BIT(18) #define BR_DEFAULT_AGEING_TIME (300 * HZ) |