Skip to content

Commit bc54ac3

Browse files
hkallweitdavem330
authored andcommitted
r8169: use new helper eth_hw_addr_crc
Use new helper eth_hw_addr_crc to simplify the code. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b86cd70 commit bc54ac3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <linux/ethtool.h>
2020
#include <linux/phy.h>
2121
#include <linux/if_vlan.h>
22-
#include <linux/crc32.h>
2322
#include <linux/in.h>
2423
#include <linux/io.h>
2524
#include <linux/ip.h>
@@ -2610,7 +2609,7 @@ static void rtl_set_rx_mode(struct net_device *dev)
26102609

26112610
mc_filter[1] = mc_filter[0] = 0;
26122611
netdev_for_each_mc_addr(ha, dev) {
2613-
u32 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26;
2612+
u32 bit_nr = eth_hw_addr_crc(ha) >> 26;
26142613
mc_filter[bit_nr >> 5] |= BIT(bit_nr & 31);
26152614
}
26162615

0 commit comments

Comments
 (0)