* [dpdk-users] I40evf VLAN stripping disable
@ 2018-06-08 15:21 Dey, Souvik
2018-06-11 7:57 ` Xing, Beilei
0 siblings, 1 reply; 3+ messages in thread
From: Dey, Souvik @ 2018-06-08 15:21 UTC (permalink / raw)
To: beilei.xing, jingjing.wu, dev; +Cc: users
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-users] I40evf VLAN stripping disable
2018-06-08 15:21 [dpdk-users] I40evf VLAN stripping disable Dey, Souvik
@ 2018-06-11 7:57 ` Xing, Beilei
2018-06-11 16:26 ` Dey, Souvik
0 siblings, 1 reply; 3+ messages in thread
From: Xing, Beilei @ 2018-06-11 7:57 UTC (permalink / raw)
To: Dey, Souvik, Wu, Jingjing, dev; +Cc: users
Hi Souvik,
Could you try with kernel driver (version 2.4.3) first? In my environment, disable vlan strip in DPDK works with kernel driver version 2.4.3.
My test steps with testpmd:
>set fwd rxonly
>set verbose 1
>set promisc 0 off
>vlan set strip off 0
Then send a vlan packet with VF mac address.
Best Regards,
Beilei Xing
From: Dey, Souvik [mailto:sodey@rbbn.com]
Sent: Friday, June 8, 2018 11:22 PM
To: Xing, Beilei <beilei.xing@intel.com>; Wu, Jingjing <jingjing.wu@intel.com>; dev@dpdk.org
Cc: users@dpdk.org
Subject: I40evf VLAN stripping disable
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-users] I40evf VLAN stripping disable
2018-06-11 7:57 ` Xing, Beilei
@ 2018-06-11 16:26 ` Dey, Souvik
0 siblings, 0 replies; 3+ messages in thread
From: Dey, Souvik @ 2018-06-11 16:26 UTC (permalink / raw)
To: Xing, Beilei, Wu, Jingjing, dev; +Cc: users
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 3094 bytes --]
Hi Xing,
Do we need to do i40evf_add_vlan() to get the vlan packets up to the VM like we had in ixgbe_vf? I see that if I have the vlan added through i40evf_add_vlan(), then the packet is received with the vlan stripped even if the vlan_strip is disabled in the PF. If I just do vlan_strip disabled and then send vlan packets it is all coming up to the VM. But is that not security issue as all VLANs even if not configured will be coming up to the VM, which never happened in the ixgbe case. I only have rte_eth_allmulticast_enable in my app , so expect that unicast/broadcast promisc mode is disabled by default.
--
Regard,
Souvik
From: Xing, Beilei [mailto:beilei.xing@intel.com]
Sent: Monday, June 11, 2018 3:58 AM
To: Dey, Souvik <sodey@rbbn.com>; Wu, Jingjing <jingjing.wu@intel.com>; dev@dpdk.org
Cc: users@dpdk.org
Subject: RE: I40evf VLAN stripping disable
________________________________
NOTICE: This email was received from an EXTERNAL sender
________________________________
Hi Souvik,
Could you try with kernel driver (version 2.4.3) first? In my environment, disable vlan strip in DPDK works with kernel driver version 2.4.3.
My test steps with testpmd:
>set fwd rxonly
>set verbose 1
>set promisc 0 off
>vlan set strip off 0
Then send a vlan packet with VF mac address.
Best Regards,
Beilei Xing
From: Dey, Souvik [mailto:sodey@rbbn.com]
Sent: Friday, June 8, 2018 11:22 PM
To: Xing, Beilei <beilei.xing@intel.com<mailto:beilei.xing@intel.com>>; Wu, Jingjing <jingjing.wu@intel.com<mailto:jingjing.wu@intel.com>>; dev@dpdk.org<mailto:dev@dpdk.org>
Cc: users@dpdk.org<mailto:users@dpdk.org>
Subject: I40evf VLAN stripping disable
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
\x16º&mè¥z,b\b§µé\¢dîx§×m<ÛøÛM|Eën®sÚ¶\x16ÞW¢Æ)à{^Ê&Eç\x1e÷~º&\x06´æ)ízW(h\x1aÓ§µé\¢m}ÛyÛÛÉÚ]à>-~,pØDHÄÏйßu\x134NçµØ§ÛM|Ó͹ß\x7f´ÛM\x02\x11$×\x02jQzË¥µ"<ñ\x03µ§!éíy²Æ yp&¤X¥yJe¡§^tV¥±ä^qè¯y×ë¢j+²h\x1aÓN£~)ízW(];ÛOyÕ¼É k]9~h§µé\¢l"¶\x11\x1213ÿL´¿\fq\x11H\0\x04Knz\x18#\x12\x1c\rüã]Iº}´×Í·ÛöÓ½4\Lm.)×UȮϢ»@T
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-06-11 16:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-08 15:21 [dpdk-users] I40evf VLAN stripping disable Dey, Souvik
2018-06-11 7:57 ` Xing, Beilei
2018-06-11 16:26 ` Dey, Souvik
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).