Skip to content

Commit

Permalink
net: igb: Use is_multicast_ether_addr helper
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Klauser <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
tklauser authored and davem330 committed Jul 5, 2011
1 parent 29a40f0 commit 58d14d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/igb/e1000_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>

#include "e1000_mac.h"

Expand Down Expand Up @@ -217,7 +218,7 @@ s32 igb_check_alt_mac_addr(struct e1000_hw *hw)
}

/* if multicast bit is set, the alternate address will not be used */
if (alt_mac_addr[0] & 0x01) {
if (is_multicast_ether_addr(alt_mac_addr)) {
hw_dbg("Ignoring Alternate Mac Address with MC bit set\n");
goto out;
}
Expand Down

0 comments on commit 58d14d4

Please sign in to comment.