I think the only way you're going to get the driver to stop stripping the vlan 
tags is to use the latest upstream kernel. Alex Duyck added some patches for 
promiscuous mode & SR-IOV to exist at the same time early this year, but it's 
not in the standalone driver.

Todd Fujinaka
Software Application Engineer
Networking Division (ND)
Intel Corporation
todd.fujin...@intel.com
(503) 712-4565


-----Original Message-----
From: Rajagopalan Vivek [mailto:r.vi...@cataleya.com] 
Sent: Thursday, September 01, 2016 12:40 PM
To: e1000-devel@lists.sourceforge.net
Subject: [E1000-devel] how to disable vlan tag stripping in KVM sr-iov 
environment

Hi

I am trying to get VLAN working in KVM environment with SR-IOV. My setup is as 
follows

RHEL 7.2 KVM host
RHEL 6.4 guest
Igb 82576 NIC (latest igb driver from download center i.e. 5.3.5.3) SR-IOV 
enabled on host and VF has been assigned to guest VM A DPDK based application 
running on guest sets VLAN filter (alternately I have also used ip link set 
devname vf X vlan tag on the host)

The problem I am facing is that when VLAN tagged packet is sent from outside 
the host (say when I do a ping) the VLAN tag gets stripped when the packet 
reaches the guest. I have tried solutions suggested in various forums, few of 
them are
- setting rxvlan off using ethtool on the main interface (Note that ethtool -k 
on the VF shows rx-vlan-filter: on [fixed] and I cannot change it, wonder why)
- using a tag of 4095

I also tried understanding from source code by chasing the E1000_VMOLR_STRVLAN 
flag but I can’t seem to find the exact code path yet that will unset this flag

I would really appreciate if someone can throw some pointers, especially from 
source code point of view as to how vlan stripping is getting activated and if 
it can be disabled at all

Regards
Vivek

------------------------------------------------------------------------------
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit 
http://communities.intel.com/community/wired
------------------------------------------------------------------------------
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit 
http://communities.intel.com/community/wired

Reply via email to