KVM Guest does not inherit VLAN Tag from host interface with ixgbe and ixgbevf drivers in RHEL 6.4

Solution Verified - Updated -

Issue

  • KVM Guest does not inherit VLAN Tag from host interface with ixgbe and ixgbevf drivers in RHEL 6.4.
  • VLAN tagging fails with SR-IOV to KVM Guest.
  • Modprobe option ixgbe max_vfs=63,63 fails to create SR-IOV VF virtual function devices with VLAN tagging enabled on the guest network devices.
  • VF virtual function devices are not created with SR-IOV and ixgbevf driver in RHEL 6.4

KVM guest configuration showing VLAN TAG ID 42

virsh dumpxml RHEL64

<interface type='hostdev' managed='yes'>
      <mac address='d2:0f:cf:32:00:c4'/>
      <source>
        <address type='pci' domain='0x0000' bus='0x15' slot='0x10' function='0x0'/>
      </source>
      <vlan>
        <tag id='42'/>                      <--------------- VLAN tag defined
      </vlan>
      <model type='virtio'/>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1a' function='0x0'/>
    </interface>

Expected results:

[root@lab053-host06 vm]# ip link show eth0 | head
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508 qdisc mq state UP qlen 10000
    link/ether e4:11:5b:95:03:18 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC d2:0f:cf:32:00:c4, vlan 42     <--------------- SUCCESS VLAN tag

Actual results:

[root@lab053-host06 vm]# ip link show eth0 | head
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508 qdisc mq state UP qlen 10000
    link/ether e4:11:5b:95:03:18 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC d2:0f:cf:32:00:c4              <--------------- FAIL VLAN tag

Environment

Red Hat Enterprise Linux (RHEL) 6.4 and earlier

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content