[dpdk-users] I40evf VLAN stripping disable

Xing, Beilei beilei.xing at intel.com
Tue Jun 12 08:25:29 CEST 2018


Hi Souvik,

Yes, if adding vlan filter, the packet will be received with vlan stripped even if the vlan_strip is disabled. It’s i40e HW limitation, different from ixgbe.

Best Regards,
Beilei

From: Dey, Souvik [mailto:sodey at rbbn.com]
Sent: Tuesday, June 12, 2018 12:26 AM
To: Xing, Beilei <beilei.xing at intel.com>; Wu, Jingjing <jingjing.wu at intel.com>; dev at dpdk.org
Cc: users at dpdk.org
Subject: RE: I40evf VLAN stripping disable

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 at intel.com]
Sent: Monday, June 11, 2018 3:58 AM
To: Dey, Souvik <sodey at rbbn.com<mailto:sodey at rbbn.com>>; Wu, Jingjing <jingjing.wu at intel.com<mailto:jingjing.wu at intel.com>>; dev at dpdk.org<mailto:dev at dpdk.org>
Cc: users at dpdk.org<mailto:users at 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 at rbbn.com]
Sent: Friday, June 8, 2018 11:22 PM
To: Xing, Beilei <beilei.xing at intel.com<mailto:beilei.xing at intel.com>>; Wu, Jingjing <jingjing.wu at intel.com<mailto:jingjing.wu at intel.com>>; dev at dpdk.org<mailto:dev at dpdk.org>
Cc: users at dpdk.org<mailto:users at 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


More information about the users mailing list