Commit 72b27032 authored by Vlad Yasevich's avatar Vlad Yasevich Committed by David S. Miller

team: Use new sync_multiple api to sync devices adressess.

Team drivers attempts to sync addresses to each of the port
devices; however, the current api doesn't really perform the sync
for any device after the first one.  Switch to using the new api
that will actually sync the addresses to all ports.

CC: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarVlad Yasevich <vyasevic@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4cd729b0
...@@ -1504,8 +1504,8 @@ static void team_set_rx_mode(struct net_device *dev) ...@@ -1504,8 +1504,8 @@ static void team_set_rx_mode(struct net_device *dev)
rcu_read_lock(); rcu_read_lock();
list_for_each_entry_rcu(port, &team->port_list, list) { list_for_each_entry_rcu(port, &team->port_list, list) {
dev_uc_sync(port->dev, dev); dev_uc_sync_multiple(port->dev, dev);
dev_mc_sync(port->dev, dev); dev_mc_sync_multiple(port->dev, dev);
} }
rcu_read_unlock(); rcu_read_unlock();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment