projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29a40f0
)
net: igb: Use is_multicast_ether_addr helper
author
Tobias Klauser
<tklauser@distanz.ch>
Sun, 3 Jul 2011 23:50:15 +0000
(23:50 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 5 Jul 2011 03:27:29 +0000
(20:27 -0700)
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/e1000_mac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/igb/e1000_mac.c
b/drivers/net/igb/e1000_mac.c
index ce8255fc3c52893ab0261ef6993e579deb3edfb8..c822904d8a09b91c63009ae218f5b8f4fcea6f39 100644
(file)
--- a/
drivers/net/igb/e1000_mac.c
+++ b/
drivers/net/igb/e1000_mac.c
@@
-29,6
+29,7
@@
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
+#include <linux/etherdevice.h>
#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;
}