diff options
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r-- | drivers/net/sfc/efx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 62d5cd51a9dd..fafaf30ecd9a 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
@@ -1615,7 +1615,7 @@ static void efx_set_multicast_list(struct net_device *net_dev) | |||
1615 | memset(mc_hash, 0xff, sizeof(*mc_hash)); | 1615 | memset(mc_hash, 0xff, sizeof(*mc_hash)); |
1616 | } else { | 1616 | } else { |
1617 | memset(mc_hash, 0x00, sizeof(*mc_hash)); | 1617 | memset(mc_hash, 0x00, sizeof(*mc_hash)); |
1618 | for (i = 0; i < net_dev->mc_count; i++) { | 1618 | for (i = 0; i < netdev_mc_count(net_dev); i++) { |
1619 | crc = ether_crc_le(ETH_ALEN, mc_list->dmi_addr); | 1619 | crc = ether_crc_le(ETH_ALEN, mc_list->dmi_addr); |
1620 | bit = crc & (EFX_MCAST_HASH_ENTRIES - 1); | 1620 | bit = crc & (EFX_MCAST_HASH_ENTRIES - 1); |
1621 | set_bit_le(bit, mc_hash->byte); | 1621 | set_bit_le(bit, mc_hash->byte); |