diff options
Diffstat (limited to 'drivers/net/chelsio')
-rw-r--r-- | drivers/net/chelsio/pm3393.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/chelsio/pm3393.c b/drivers/net/chelsio/pm3393.c index 9e631b9d3948..7dbb16d36fff 100644 --- a/drivers/net/chelsio/pm3393.c +++ b/drivers/net/chelsio/pm3393.c | |||
@@ -377,12 +377,13 @@ static int pm3393_set_rx_mode(struct cmac *cmac, struct t1_rx_mode *rm) | |||
377 | rx_mode |= SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN; | 377 | rx_mode |= SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN; |
378 | } else if (t1_rx_mode_mc_cnt(rm)) { | 378 | } else if (t1_rx_mode_mc_cnt(rm)) { |
379 | /* Accept one or more multicast(s). */ | 379 | /* Accept one or more multicast(s). */ |
380 | struct dev_mc_list *dmi; | 380 | struct netdev_hw_addr *ha; |
381 | int bit; | 381 | int bit; |
382 | u16 mc_filter[4] = { 0, }; | 382 | u16 mc_filter[4] = { 0, }; |
383 | 383 | ||
384 | netdev_for_each_mc_addr(dmi, t1_get_netdev(rm)) { | 384 | netdev_for_each_mc_addr(ha, t1_get_netdev(rm)) { |
385 | bit = (ether_crc(ETH_ALEN, dmi->dmi_addr) >> 23) & 0x3f; /* bit[23:28] */ | 385 | /* bit[23:28] */ |
386 | bit = (ether_crc(ETH_ALEN, ha->addr) >> 23) & 0x3f; | ||
386 | mc_filter[bit >> 4] |= 1 << (bit & 0xf); | 387 | mc_filter[bit >> 4] |= 1 << (bit & 0xf); |
387 | } | 388 | } |
388 | pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW, mc_filter[0]); | 389 | pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW, mc_filter[0]); |