Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH net-next] ice: disable VLAN stripping on control VSI
Date: Mon,  2 Aug 2021 18:12:45 -0400	[thread overview]
Message-ID: <20210802221245.6056-1-michal.swiatkowski@linux.intel.com> (raw)

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.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
---
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(+)

diff --git a/drivers/net/ethernet/intel/ice/ice_eswitch.c b/drivers/net/ethernet/intel/ice/ice_eswitch.c
index ec2aa789e214..21f3e72a9a35 100644
--- a/drivers/net/ethernet/intel/ice/ice_eswitch.c
+++ b/drivers/net/ethernet/intel/ice/ice_eswitch.c
@@ -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))
-- 
2.31.1


                 reply	other threads:[~2021-08-02 22:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210802221245.6056-1-michal.swiatkowski@linux.intel.com \
    --to=michal.swiatkowski@linux.intel.com \
    --cc=intel-wired-lan@osuosl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox