bond: add support for ndo_switch_port_stp_update when bond is a bridge port
Subsystems (3)
PATCH v2 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.
Signed-off-by Roopa Prabhu <[email protected]>
--- drivers/net/bonding/bond_main.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/bonding/bond_main.c +3 -0
@@ -4038,6 +4038,9 @@ 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, +#ifdef CONFIG_NET_SWITCHDEV + .ndo_switch_port_stp_update = ndo_dflt_netdev_switch_port_stp_update, +#endif };static const struct device_type bond_type = {
Signature · 1 line
1.7.10.4
Quoted 6 lines · Fri, Mar 13, 2015 at 01:29:57AM 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.
Signed-off-by Roopa Prabhu <[email protected]>
Acked-by Jiri Pirko <[email protected]>