Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58d14d4f authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller
Browse files

net: igb: Use is_multicast_ether_addr helper

parent 29a40f06
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -29,6 +29,7 @@
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>


#include "e1000_mac.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 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");
		hw_dbg("Ignoring Alternate Mac Address with MC bit set\n");
		goto out;
		goto out;
	}
	}