net: bridge: propagate extack through switchdev_port_attr_set
The benefit is the ability to propagate errors from switchdev drivers for the SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING and SWITCHDEV_ATTR_ID_BRIDGE_VLAN_PROTOCOL attributes. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9e781401cb
commit
dcbdf1350e
@@ -1381,7 +1381,7 @@ static void br_mc_router_state_change(struct net_bridge *p,
|
||||
.u.mrouter = is_mc_router,
|
||||
};
|
||||
|
||||
switchdev_port_attr_set(p->dev, &attr);
|
||||
switchdev_port_attr_set(p->dev, &attr, NULL);
|
||||
}
|
||||
|
||||
static void br_multicast_local_router_expired(struct timer_list *t)
|
||||
@@ -1602,7 +1602,7 @@ static void br_mc_disabled_update(struct net_device *dev, bool value)
|
||||
.u.mc_disabled = !value,
|
||||
};
|
||||
|
||||
switchdev_port_attr_set(dev, &attr);
|
||||
switchdev_port_attr_set(dev, &attr, NULL);
|
||||
}
|
||||
|
||||
int br_multicast_add_port(struct net_bridge_port *port)
|
||||
@@ -2645,7 +2645,7 @@ static void br_port_mc_router_state_change(struct net_bridge_port *p,
|
||||
.u.mrouter = is_mc_router,
|
||||
};
|
||||
|
||||
switchdev_port_attr_set(p->dev, &attr);
|
||||
switchdev_port_attr_set(p->dev, &attr, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user