Skip to contentSkip to conversation

ice: disable VLAN stripping on control VSI

PATCH New Michal Swiatkowski 1 participant 1 message Aug 2, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ice: disable VLAN stripping on control VSI

Port representators don't support stripping VLAN tag. Control VSI should reflect this setting. As default all VSIs have stripping enabled. Disable it for control VSI to allow passing VLAN traffic in switchdev mode.

Control VSI exists only in switchdev mode, so this change doesn't impact legacy mode driver.

---
This commit should be squashed with "ice: setting and releasing switchdev environment"

 drivers/net/ethernet/intel/ice/ice_eswitch.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/ice/ice_eswitch.c +2 -0
index ec2aa789e214..21f3e72a9a35 100644
@@ -22,6 +22,8 @@ static int ice_eswitch_setup_env(struct ice_pf *pf)
 	struct ice_port_info *pi = pf->hw.port_info;
 	bool rule_added = false;
 
+	ice_vsi_manage_vlan_stripping(ctrl_vsi, false);
+
 	ice_remove_vsi_fltr(&pf->hw, uplink_vsi->idx);
 
 	if (ice_vsi_add_vlan(uplink_vsi, 0, ICE_FWD_TO_VSI))
Signature · 1 line
2.31.1