aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-07-03 19:50:15 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-04 23:27:29 -0400
commit58d14d4fbaeb0cede14c59e8a2648b4791c0afe2 (patch)
tree6b4c4a0e386f12f2151054eb1a41b75baa438342
parent29a40f0676c9388a83396306957f11b359c4be1c (diff)
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>
-rw-r--r--drivers/net/igb/e1000_mac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/igb/e1000_mac.c b/drivers/net/igb/e1000_mac.c
index ce8255fc3c52..c822904d8a09 100644
--- a/drivers/net/igb/e1000_mac.c
+++ b/drivers/net/igb/e1000_mac.c
@@ -29,6 +29,7 @@
29#include <linux/delay.h> 29#include <linux/delay.h>
30#include <linux/pci.h> 30#include <linux/pci.h>
31#include <linux/netdevice.h> 31#include <linux/netdevice.h>
32#include <linux/etherdevice.h>
32 33
33#include "e1000_mac.h" 34#include "e1000_mac.h"
34 35
@@ -217,7 +218,7 @@ s32 igb_check_alt_mac_addr(struct e1000_hw *hw)
217 } 218 }
218 219
219 /* if multicast bit is set, the alternate address will not be used */ 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 hw_dbg("Ignoring Alternate Mac Address with MC bit set\n"); 222 hw_dbg("Ignoring Alternate Mac Address with MC bit set\n");
222 goto out; 223 goto out;
223 } 224 }