mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
net: bridge: mst: Notify switchdev drivers of MST state changes
Generate a switchdev notification whenever an MST state changes. This notification is keyed by the VLANs MSTI rather than the VID, since multiple VLANs may share the same MST instance. Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com> Acked-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
6284c723d9
commit
7ae9147f43
@@ -19,6 +19,7 @@
|
||||
enum switchdev_attr_id {
|
||||
SWITCHDEV_ATTR_ID_UNDEFINED,
|
||||
SWITCHDEV_ATTR_ID_PORT_STP_STATE,
|
||||
SWITCHDEV_ATTR_ID_PORT_MST_STATE,
|
||||
SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS,
|
||||
SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS,
|
||||
SWITCHDEV_ATTR_ID_PORT_MROUTER,
|
||||
@@ -32,6 +33,11 @@ enum switchdev_attr_id {
|
||||
SWITCHDEV_ATTR_ID_VLAN_MSTI,
|
||||
};
|
||||
|
||||
struct switchdev_mst_state {
|
||||
u16 msti;
|
||||
u8 state;
|
||||
};
|
||||
|
||||
struct switchdev_brport_flags {
|
||||
unsigned long val;
|
||||
unsigned long mask;
|
||||
@@ -50,6 +56,7 @@ struct switchdev_attr {
|
||||
void (*complete)(struct net_device *dev, int err, void *priv);
|
||||
union {
|
||||
u8 stp_state; /* PORT_STP_STATE */
|
||||
struct switchdev_mst_state mst_state; /* PORT_MST_STATE */
|
||||
struct switchdev_brport_flags brport_flags; /* PORT_BRIDGE_FLAGS */
|
||||
bool mrouter; /* PORT_MROUTER */
|
||||
clock_t ageing_time; /* BRIDGE_AGEING_TIME */
|
||||
|
Reference in New Issue
Block a user