Skip to content

Commit d96a83d

Browse files
mawilli1Jeff Kirsher
authored andcommitted
i40e: don't add broadcast filter for VFs
Now that all VSIs are configured to receive broadcasts as default, we don't need to add a filter. This eliminates an annoying but harmless error message each time VFs are created or reset. Change-ID: I4cd6339684df45b0d2722133eeb84c14fa93ea19 Signed-off-by: Mitch Williams <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent a876c3b commit d96a83d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,6 @@ static int i40e_alloc_vsi_res(struct i40e_vf *vf, enum i40e_vsi_type type)
665665
goto error_alloc_vsi_res;
666666
}
667667
if (type == I40E_VSI_SRIOV) {
668-
u8 brdcast[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
669-
670668
vf->lan_vsi_idx = vsi->idx;
671669
vf->lan_vsi_id = vsi->id;
672670
/* If the port VLAN has been configured and then the
@@ -688,12 +686,6 @@ static int i40e_alloc_vsi_res(struct i40e_vf *vf, enum i40e_vsi_type type)
688686
"Could not add MAC filter %pM for VF %d\n",
689687
vf->default_lan_addr.addr, vf->vf_id);
690688
}
691-
f = i40e_add_filter(vsi, brdcast,
692-
vf->port_vlan_id ? vf->port_vlan_id : -1,
693-
true, false);
694-
if (!f)
695-
dev_info(&pf->pdev->dev,
696-
"Could not allocate VF broadcast filter\n");
697689
spin_unlock_bh(&vsi->mac_filter_list_lock);
698690
}
699691

0 commit comments

Comments
 (0)