Red Hat Bugzilla – Bug 1270853
vlan tag is not stripped in the packet when received in a vm which is using dpdk on a VF netcard.
Last modified: 2015-10-25 03:48:04 EDT
Description of problem:
Version-Release number of selected component (if applicable):
host:rhel7.1, Openstack platform 6
vm : rhel7.1
Steps to Reproduce:
you can reproduce it but it is difficult to see the issue because it is difficult to dump raw packet in vm when using DPDK.
In fact, to help to understand the issue , you can take two server ,each with one 82599 netcard,config SRIOV, then run a vm in each server, set the same Vlan id for VF ,
in the vm, you can modify ixgbevf souce code and print the vlan tag in receive packet path.
you can refer it like https://access.redhat.com/support/cases/#/case/01512268
vlan tag is not striped.
vlan tag is striped by hardware, not by software.
1. Feature Overview:
a) Name of feature:
Vlan tag strip in ixgbe PF function
b) Feature Description:
Currently, vlan tag strip at ixgbe_vf function, but at some NFV
environment, customer hope we could achive this function at PF site.
2. Feature Details:
b) Bugzilla Dependencies:
c) Drivers or hardware dependencies:
ixgbe, intel 82599
d) Upstream acceptance information:
e) External links:
f) Severity (H,M,L):
g) Feature Needed by:
ZTE, one NEP partner of redhat
3. Business Justification:
a) Why is this feature needed
We are doing a NFV project with ZTE. In the project, this feature is
important for customer, in their environment,
they don't handle vlan tag strip by dpdk.
b) What hardware does this enable?
c) Is this hardware on-board in a system (eg, LOM) or an add-on card?
add-on card, intel 10GB netcard
d) Business impact?
At NFV area, any performance improve about virtulization could be
e) Other business drivers:
4. Primary contact at Red Hat, email, phone (chat)
Hua Huang firstname.lastname@example.org
Jun Hu email@example.com
5. Primary contact at Partner, email, phone (chat)
Technical contact: Wang Lujing firstname.lastname@example.org
Management contact: Wang Bibo email@example.com
*** This bug has been marked as a duplicate of bug 1270849 ***
(In reply to John W. Linville from comment #3)
> *** This bug has been marked as a duplicate of bug 1270849 ***
Here is about to strip at PF, not at VF. The other bug seems to about a malfunction in VF vlan stripping, so another issue.
Wanglujing, could you review and confirm?
Also, when you say "hope we could achive this function at PF site" does that mean you want to control each VF independently from PF or enable/disable vlan stripping for ALL VFs in PF?
Another question is if you need per queue or not, do you?
One last question, is it only about single tagging or double tagging too?
The HW seems to support stripping only for one level.
yes, we want to set enable/disable vlan stripping for all VFs in PF driver.
need per queue.
we can refer the implementation like rte_eth_dev_set_vlan_strip_on_queue function in DPDK.
another question: can "ethtool -K $VF rxvlan on" enable vlan stripping in vm ?