Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

i40e xdp driver: the xdp program does not see vlan tag #38

Open
williamtu opened this issue Feb 23, 2017 · 4 comments
Open

i40e xdp driver: the xdp program does not see vlan tag #38

williamtu opened this issue Feb 23, 2017 · 4 comments
Labels

Comments

@williamtu
Copy link
Contributor

williamtu commented Feb 23, 2017

when parsing the vlan header from XDP program, my xdp program does not see vlan tag, while tcpdump can see it. I suspect the i40e nic is doing hardware vlan offload so vlan header is kept in skb metadata. I tried disable the vlan offload but fails.

root@prmh-nsx-perf-server139:# ethtool -K enp66s0f0 rx-vlan-offload off
ethtool: bad command line argument(s)
For more information run ethtool -h
@jaelsasser
Copy link

Correct syntax to disable the hardware VLAN offload is ethtool -K enp66s0f0 rxvlan off.

@williamtu
Copy link
Contributor Author

OH, thanks, it works!

root@osboxes:~/ovs# ethtool -K enp0s16 rxvlan off
Actual changes:
rx-vlan-offload: off
tx-vlan-offload: off [fixed]
@shogosanz
Copy link

if vlan filter is on, it should be turn off.
(if you do not turn off filter, you must add vlan interface (e.g. enp65s0f0.10) for xdp)

# ethtool -k enp65s0f0 | grep rx-vlan-filter                      
rx-vlan-filter: on

# ethtool -K enp65s0f0 rx-vlan-filter off
@mihaibudiu
Copy link
Contributor

I will reopen and keep tagged as question, so other people can see it.

@mihaibudiu mihaibudiu reopened this Feb 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4 participants