Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b190a508 authored by Jay Vosburgh's avatar Jay Vosburgh Committed by David S. Miller
Browse files

net/core: dev_mc_sync_multiple calls wrong helper



The dev_mc_sync_multiple function is currently calling
__hw_addr_sync, and not __hw_addr_sync_multiple.  This will result in
addresses only being synced to the first device from the set.

	Corrected by calling the _multiple variant.

Signed-off-by: default avatarJay Vosburgh <fubar@us.ibm.com>
Reviewed-by: default avatarVlad Yasevich <vyasevic@redhat.com>
Tested-by: default avatarShawn Bohrer <sbohrer@rgmadvisors.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 29ca2f8f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -801,7 +801,7 @@ int dev_mc_sync_multiple(struct net_device *to, struct net_device *from)
		return -EINVAL;
		return -EINVAL;


	netif_addr_lock_nested(to);
	netif_addr_lock_nested(to);
	err = __hw_addr_sync(&to->mc, &from->mc, to->addr_len);
	err = __hw_addr_sync_multiple(&to->mc, &from->mc, to->addr_len);
	if (!err)
	if (!err)
		__dev_set_rx_mode(to);
		__dev_set_rx_mode(to);
	netif_addr_unlock(to);
	netif_addr_unlock(to);