Skip to contentSkip to conversation

team: add support for ndo_switch_port_stp_update when team dev is a bridge port

PATCH In review [email protected] 2 participants 2 messages Mar 13, 2015 – Mar 15, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 3/3 team: add support for ndo_switch_port_stp_update when team dev is a bridge port

From: Roopa Prabhu <[email protected]>

This patch adds support for stp state offload netdev op to support the case where team dev is a bridge port and team slaves are switch ports.

---
 drivers/net/team/team.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/net/team/team.c +3 -0
index a23319f..ccf6efb 100644
@@ -1979,6 +1979,9 @@ static const struct net_device_ops team_netdev_ops = {
 	.ndo_change_carrier     = team_change_carrier,
 	.ndo_bridge_setlink     = ndo_dflt_netdev_switch_port_bridge_setlink,
 	.ndo_bridge_dellink     = ndo_dflt_netdev_switch_port_bridge_dellink,
+#ifdef CONFIG_NET_SWITCHDEV
+	.ndo_switch_port_stp_update = ndo_dflt_netdev_switch_port_stp_update,
+#endif
 };
 
 /***********************
Signature · 1 line
1.7.10.4