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

Reply via email to