mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
i40evf: set IFF_UNICAST_FLT flag for the VF
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>
This commit is contained in:
parent
7eb74ff891
commit
e65aae0863
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue