Commit 8d7e6ab3 authored by Lihong Yang's avatar Lihong Yang Committed by Greg Kroah-Hartman

i40evf: set IFF_UNICAST_FLT flag for the VF

[ Upstream commit e65aae08 ]

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: default avatarLihong Yang <lihong.yang@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 015fc525
...@@ -3332,6 +3332,8 @@ int i40evf_process_config(struct i40evf_adapter *adapter) ...@@ -3332,6 +3332,8 @@ int i40evf_process_config(struct i40evf_adapter *adapter)
if (vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_VLAN) if (vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_VLAN)
netdev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; 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. /* Do not turn on offloads when they are requested to be turned off.
* TSO needs minimum 576 bytes to work correctly. * TSO needs minimum 576 bytes to work correctly.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment