]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
i40evf: Use is_multicast_ether_addr helper
authorTobias Klauser <tklauser@distanz.ch>
Tue, 20 May 2014 08:23:06 +0000 (08:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 27 May 2014 09:10:45 +0000 (02:10 -0700)
Use the is_multicast_ether_addr helper function from linux/etherdevice.h
instead of open coding the multicast address check.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c

index 8dbaa779848595b103c16b19e4cfc2e8b4159475..23c9ff6698bcaf3e2d61ca0695fef11b39133ed8 100644 (file)
@@ -845,7 +845,7 @@ static void i40evf_set_rx_mode(struct net_device *netdev)
        list_for_each_entry_safe(f, ftmp, &adapter->mac_filter_list, list) {
                bool found = false;
 
-               if (f->macaddr[0] & 0x01) {
+               if (is_multicast_ether_addr(f->macaddr)) {
                        netdev_for_each_mc_addr(mca, netdev) {
                                if (ether_addr_equal(mca->addr, f->macaddr)) {
                                        found = true;