net: bridge: mst: Notify switchdev drivers of VLAN MSTI migrations
Whenever a VLAN moves to a new MSTI, send a switchdev notification so that switchdevs can track a bridge's VID to MSTI mappings. 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
87c167bb94
commit
6284c723d9
@@ -29,6 +29,7 @@ enum switchdev_attr_id {
|
||||
SWITCHDEV_ATTR_ID_BRIDGE_MROUTER,
|
||||
SWITCHDEV_ATTR_ID_BRIDGE_MST,
|
||||
SWITCHDEV_ATTR_ID_MRP_PORT_ROLE,
|
||||
SWITCHDEV_ATTR_ID_VLAN_MSTI,
|
||||
};
|
||||
|
||||
struct switchdev_brport_flags {
|
||||
@@ -36,6 +37,11 @@ struct switchdev_brport_flags {
|
||||
unsigned long mask;
|
||||
};
|
||||
|
||||
struct switchdev_vlan_msti {
|
||||
u16 vid;
|
||||
u16 msti;
|
||||
};
|
||||
|
||||
struct switchdev_attr {
|
||||
struct net_device *orig_dev;
|
||||
enum switchdev_attr_id id;
|
||||
@@ -52,6 +58,7 @@ struct switchdev_attr {
|
||||
bool mst; /* BRIDGE_MST */
|
||||
bool mc_disabled; /* MC_DISABLED */
|
||||
u8 mrp_port_role; /* MRP_PORT_ROLE */
|
||||
struct switchdev_vlan_msti vlan_msti; /* VLAN_MSTI */
|
||||
} u;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user