bridge: convert br_features_recompute() to ndo_fix_features
Note: netdev_update_features() needs only rtnl_lock as br->port_list is only changed while holding it. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
1742f183fc
commit
c4d27ef957
@@ -66,10 +66,7 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v
|
||||
break;
|
||||
|
||||
case NETDEV_FEAT_CHANGE:
|
||||
spin_lock_bh(&br->lock);
|
||||
if (netif_running(br->dev))
|
||||
br_features_recompute(br);
|
||||
spin_unlock_bh(&br->lock);
|
||||
netdev_update_features(br->dev);
|
||||
break;
|
||||
|
||||
case NETDEV_DOWN:
|
||||
|
Reference in New Issue
Block a user