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 mode changes
Trigger a switchdev event whenever the bridge's MST mode is enabled/disabled. This allows constituent ports to either perform any required hardware config, or refuse the change if it not supported. 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
122c29486e
commit
87c167bb94
@@ -27,6 +27,7 @@ enum switchdev_attr_id {
|
||||
SWITCHDEV_ATTR_ID_BRIDGE_VLAN_PROTOCOL,
|
||||
SWITCHDEV_ATTR_ID_BRIDGE_MC_DISABLED,
|
||||
SWITCHDEV_ATTR_ID_BRIDGE_MROUTER,
|
||||
SWITCHDEV_ATTR_ID_BRIDGE_MST,
|
||||
SWITCHDEV_ATTR_ID_MRP_PORT_ROLE,
|
||||
};
|
||||
|
||||
@@ -48,6 +49,7 @@ struct switchdev_attr {
|
||||
clock_t ageing_time; /* BRIDGE_AGEING_TIME */
|
||||
bool vlan_filtering; /* BRIDGE_VLAN_FILTERING */
|
||||
u16 vlan_protocol; /* BRIDGE_VLAN_PROTOCOL */
|
||||
bool mst; /* BRIDGE_MST */
|
||||
bool mc_disabled; /* MC_DISABLED */
|
||||
u8 mrp_port_role; /* MRP_PORT_ROLE */
|
||||
} u;
|
||||
|
Reference in New Issue
Block a user