You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ice: Add functions to rebuild host VLAN/MAC config for a VF
When resetting a VF the VLAN and MAC filter configurations need to be
replayed. Add helper functions for this purpose.
Signed-off-by: Brett Creeley <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
if (ice_vsi_add_vlan(vsi, vf->port_vlan_info&VLAN_VID_MASK,
574
-
ICE_FWD_TO_VSI))
575
-
dev_warn(ice_pf_to_dev(pf), "Failed to add Port VLAN %d filter for VF %d\n",
576
-
vf->port_vlan_info&VLAN_VID_MASK, vf->vf_id);
577
-
} else {
578
-
/* set VLAN 0 filter by default when no port VLAN is
579
-
* enabled. If a port VLAN is enabled we don't want
580
-
* untagged broadcast/multicast traffic seen on the VF
581
-
* interface.
582
-
*/
583
-
if (ice_vsi_add_vlan(vsi, 0, ICE_FWD_TO_VSI))
584
-
dev_warn(ice_pf_to_dev(pf), "Failed to add VLAN 0 filter for VF %d, MDD events will trigger. Reset the VF, disable spoofchk, or enable 8021q module on the guest\n",
585
-
vf->vf_id);
645
+
ret=ice_vf_rebuild_host_vlan_cfg(vf);
646
+
if (ret) {
647
+
dev_err(dev, "failed to rebuild default MAC configuration for VF %d, error %d\n",
648
+
vf->vf_id, ret);
649
+
goto ice_alloc_vsi_res_exit;
586
650
}
587
651
588
-
if (is_valid_ether_addr(vf->dflt_lan_addr.addr)) {
0 commit comments