Commit 58d14d4fbaeb0cede14c59e8a2648b4791c0afe2

Authored by Tobias Klauser
Committed by David S. Miller
1 parent 29a40f0676

net: igb: Use is_multicast_ether_addr helper

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

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

drivers/net/igb/e1000_mac.c
... ... @@ -29,6 +29,7 @@
29 29 #include <linux/delay.h>
30 30 #include <linux/pci.h>
31 31 #include <linux/netdevice.h>
  32 +#include <linux/etherdevice.h>
32 33  
33 34 #include "e1000_mac.h"
34 35  
... ... @@ -217,7 +218,7 @@
217 218 }
218 219  
219 220 /* if multicast bit is set, the alternate address will not be used */
220   - if (alt_mac_addr[0] & 0x01) {
  221 + if (is_multicast_ether_addr(alt_mac_addr)) {
221 222 hw_dbg("Ignoring Alternate Mac Address with MC bit set\n");
222 223 goto out;
223 224 }