Skip to content

Commit b190a50

Browse files
Jay Vosburghdavem330
authored andcommitted
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: Jay Vosburgh <fubar@us.ibm.com> Reviewed-by: Vlad Yasevich <vyasevic@redhat.com> Tested-by: Shawn Bohrer <sbohrer@rgmadvisors.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 29ca2f8 commit b190a50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/core/dev_addr_lists.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ int dev_mc_sync_multiple(struct net_device *to, struct net_device *from)
801801
return -EINVAL;
802802

803803
netif_addr_lock_nested(to);
804-
err = __hw_addr_sync(&to->mc, &from->mc, to->addr_len);
804+
err = __hw_addr_sync_multiple(&to->mc, &from->mc, to->addr_len);
805805
if (!err)
806806
__dev_set_rx_mode(to);
807807
netif_addr_unlock(to);

0 commit comments

Comments
 (0)