From: Tobias Klauser Date: Sun, 3 Jul 2011 23:50:15 +0000 (+0000) Subject: net: igb: Use is_multicast_ether_addr helper X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~304 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=657d274cacc88351cad5364e0e7158a6314cd4a3;p=users%2Fjedix%2Flinux-maple.git net: igb: Use is_multicast_ether_addr helper Signed-off-by: Tobias Klauser Signed-off-by: David S. Miller (cherry picked from commit 58d14d4fbaeb0cede14c59e8a2648b4791c0afe2) Signed-off-by: Joe Jin --- diff --git a/drivers/net/igb/e1000_mac.c b/drivers/net/igb/e1000_mac.c index ce8255fc3c528..c822904d8a09b 100644 --- a/drivers/net/igb/e1000_mac.c +++ b/drivers/net/igb/e1000_mac.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "e1000_mac.h" @@ -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; }