[dpdk-dev] disable i40e vf vlan stripping

Wu, Jingjing jingjing.wu at intel.com
Wed Mar 29 04:53:15 CEST 2017

> -----Original Message-----
> From: Olivier Matz [mailto:olivier.matz at 6wind.com]
> Sent: Tuesday, March 28, 2017 11:30 PM
> To: dev at dpdk.org; Zhang, Helin <helin.zhang at intel.com>; Wu, Jingjing
> <jingjing.wu at intel.com>
> Subject: disable i40e vf vlan stripping
> Hi i40e maintainers,
> I have the following configuration:
> - host runs with Linux pf i40e driver
> - guest runs with DPDK vf i40e driver
> I send a vlan packet from the host to the guest.
> On the guest, I start testpmd with --disable-hw-vlan-strip.
> When I receive the packet on the guest, it has the PKT_RX_VLAN_STRIPPED flag
> although I'm not asking for it. From what I understand, it is not possible to
> disable vlan stripping when using a Linux PF driver.
> Since the i40evf DPDK driver does not behave like what the application asks for,
> I think it should be fixed. What do you think about re-adding the vlan in
> software when dev_conf->rxmode.hw_vlan_strip == 0 ?
> The other alternative would be to forbid this configuration and return an error.
We faced the same issue with hw_crc_strip, and now the code is consider it as an error.
The issue is hw_vlan_strip/hw_crc_strip mode is inconsistent between VF and PF.
Evne I think it should not be an error to block the VF start up. But I'm fine if you think it is an error.

The ideal way maybe the capability negotiate between VF and PF. Let's think about it.



More information about the dev mailing list