Skip to contentSkip to conversation

bond: add support for ndo_switch_port_stp_update when bond is a bridge port

PATCH Superseded [email protected] 2 participants 3 messages Mar 6, 2015 – Mar 7, 2015

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 bond: add support for ndo_switch_port_stp_update when bond is a bridge port

From: Roopa Prabhu <[email protected]>

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

---
 drivers/net/bonding/bond_main.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/bonding/bond_main.c +1 -0
index 675b082..bf60535 100644
@@ -4005,6 +4005,7 @@ static const struct net_device_ops bond_netdev_ops = {
 	.ndo_fix_features	= bond_fix_features,
 	.ndo_bridge_setlink	= ndo_dflt_netdev_switch_port_bridge_setlink,
 	.ndo_bridge_dellink	= ndo_dflt_netdev_switch_port_bridge_dellink,
+	.ndo_switch_port_stp_update = ndo_dflt_netdev_switch_port_stp_update,
 };
 
 static const struct device_type bond_type = {
Signature · 1 line
1.7.10.4
Acked-by on v1 2/3
#1 lore raw
Quoted 6 lines · Fri, Mar 06, 2015 at 05:04:17AM CET, [email protected] wrote:

From: Roopa Prabhu <[email protected]>

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

Maybe the indent should be fixed for the rest to align with .ndo_switch_port_stp_update. Not sure if that is needed thought. The same note goes for team.

Quoted 19 lines

---
drivers/net/bonding/bond_main.c | 1 +

1 file changed, 1 insertion(+)
drivers/net/bonding/bond_main.c +1 -0
index 675b082..bf60535 100644
@@ -4005,6 +4005,7 @@ static const struct net_device_ops bond_netdev_ops = {
 	.ndo_fix_features	= bond_fix_features,
 	.ndo_bridge_setlink	= ndo_dflt_netdev_switch_port_bridge_setlink,
 	.ndo_bridge_dellink	= ndo_dflt_netdev_switch_port_bridge_dellink,
+	.ndo_switch_port_stp_update = ndo_dflt_netdev_switch_port_stp_update,
 };
 
 static const struct device_type bond_type = {
Signature · 1 line
1.7.10.4
author
#2 lore raw
Quoted 10 lines · Jiri Pirko
Quoted 6 lines · Fri, Mar 06, 2015 at 05:04:17AM CET, [email protected] wrote:

From: Roopa Prabhu <[email protected]>

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

Maybe the indent should be fixed for the rest to align with .ndo_switch_port_stp_update. Not sure if that is needed thought. The same note goes for team.

Thanks Jiri. I looked at it and you are right i am not sure i can do anything more.

Quoted 22 lines
Quoted 19 lines

---
drivers/net/bonding/bond_main.c | 1 +

1 file changed, 1 insertion(+)
drivers/net/bonding/bond_main.c +1 -0
index 675b082..bf60535 100644
@@ -4005,6 +4005,7 @@ static const struct net_device_ops bond_netdev_ops = {
 	.ndo_fix_features	= bond_fix_features,
 	.ndo_bridge_setlink	= ndo_dflt_netdev_switch_port_bridge_setlink,
 	.ndo_bridge_dellink	= ndo_dflt_netdev_switch_port_bridge_dellink,
+	.ndo_switch_port_stp_update = ndo_dflt_netdev_switch_port_stp_update,
 };
 
 static const struct device_type bond_type = {
Signature · 1 line
1.7.10.4