]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
i40evf: set IFF_UNICAST_FLT flag for the VF
authorLihong Yang <lihong.yang@intel.com>
Mon, 20 Aug 2018 15:12:31 +0000 (08:12 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 30 Aug 2018 20:53:04 +0000 (13:53 -0700)
Set IFF_UNICAST_FLT flag for the VF to prevent it from entering
promiscuous mode when macvlan is added to the VF.

Signed-off-by: Lihong Yang <lihong.yang@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c

index 5906c1c1d19d82d7e37b0a891e457fea792b4153..07f187b5bcac636a0939c4bf68a2ef509a641af1 100644 (file)
@@ -3358,6 +3358,8 @@ int i40evf_process_config(struct i40evf_adapter *adapter)
        if (vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_VLAN)
                netdev->features |= NETIF_F_HW_VLAN_CTAG_FILTER;
 
+       netdev->priv_flags |= IFF_UNICAST_FLT;
+
        /* Do not turn on offloads when they are requested to be turned off.
         * TSO needs minimum 576 bytes to work correctly.
         */