DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Dey, Souvik" <sodey@rbbn.com>
To: "beilei.xing@intel.com" <beilei.xing@intel.com>,
	"jingjing.wu@intel.com" <jingjing.wu@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-dev] I40evf VLAN stripping disable
Date: Fri, 8 Jun 2018 15:21:32 +0000	[thread overview]
Message-ID: <SN2PR03MB23654C20AE6F6C71265473ECCD7B0@SN2PR03MB2365.namprd03.prod.outlook.com> (raw)

Hi i40e/i40evf maintainers,

I was testing VLANs with i40evf pmd and is hitting the below issue.

I have the following configuration:
- host runs with Linux pf i40e driver(version 2.4.6)
- guest runs with DPDK 17.11.2 vf i40e driver
When I am sending a vlan packet from the outside to the guest, on the guest, I receive the packet which has the PKT_RX_VLAN_STRIPPED flag set although I'm not asking for it.
Even though my DPDK app has the rte_eth_conf.rxmode.hw_vlan_strip set to 0 and also verified that the i40evf_disable_vlan_strip(VIRTCHNL_OP_DISABLE_VLAN_STRIPPING) function is getting called and not returning any error from the linux pf driver.
Is this the default behavior that the VLAN will be always stripped by the PF irrespective of the setting ? Should the DPDK version take care of the re-adding the tag back to the packet in case hw_vlan_strip is disabled ? What should be best way of handling it ? Is it a bug in DPDK or I am missing something here.

I do see in the linux i40evf driver we are insert vlan header in the received packets in some cases.

--
Regards,
Souvik

             reply	other threads:[~2018-06-08 15:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-08 15:21 Dey, Souvik [this message]
2018-06-11  7:57 ` Xing, Beilei
2018-06-11 16:26   ` Dey, Souvik
2018-06-12  6:25     ` Xing, Beilei

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=SN2PR03MB23654C20AE6F6C71265473ECCD7B0@SN2PR03MB2365.namprd03.prod.outlook.com \
    --to=sodey@rbbn.com \
    --cc=beilei.xing@intel.com \
    --cc=dev@dpdk.org \
    --cc=jingjing.wu@intel.com \
    --cc=users@dpdk.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;
as well as URLs for NNTP newsgroup(s).