Commit b190a50875b95e58ebe2b00ed3bf7f1d44961471

Authored by Jay Vosburgh
Committed by David S. Miller
1 parent 29ca2f8fcc

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/core/dev_addr_lists.c
... ... @@ -801,7 +801,7 @@
801 801 return -EINVAL;
802 802  
803 803 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);
805 805 if (!err)
806 806 __dev_set_rx_mode(to);
807 807 netif_addr_unlock(to);