]> xenbits.xensource.com Git - libvirt.git/commit
qemu: support setting vlan tag for <interface type='hostdev'>
authorLaine Stump <laine@laine.org>
Wed, 15 Aug 2012 07:13:36 +0000 (03:13 -0400)
committerLaine Stump <laine@laine.org>
Thu, 16 Aug 2012 14:14:05 +0000 (10:14 -0400)
commit3fdd85bf53fc379189355c2af5031b25941f0245
treeab4241896f840fa24fb09bccc4234866e55f4e67
parente979226ba2e14ea09ee5d70f5f9f40324e5d7472
qemu: support setting vlan tag for <interface type='hostdev'>

The underlying function to set the vlan tag of an SR-IOV network
device was already in place (although an extra patch to save/restore
the original vlan tag was needed), and recent patches added the
ability to configure a vlan tag. This patch just ties those two
together.

An SR-IOV device doesn't support vlan trunking, so if anyone tries to
configure more than a single tag, or set the trunk flag, and error is
logged.
src/qemu/qemu_hostdev.c