]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: set vlan tag for macvtap passthrough mode on SRIOV VFs
authorLaine Stump <laine@laine.org>
Wed, 4 May 2016 17:18:16 +0000 (13:18 -0400)
committerLaine Stump <laine@laine.org>
Tue, 10 May 2016 18:04:19 +0000 (14:04 -0400)
commit75db9997a0b91622030d0b02e704f2281e89f006
tree303fa0f79d1fb75b3dffa5f06dffb5987f6328f9
parentcd25acba268af583764839de9db2d49983dce188
util: set vlan tag for macvtap passthrough mode on SRIOV VFs

SRIOV VFs used in macvtap passthrough mode can take advantage of the
SRIOV card's transparent vlan tagging. All the code was there to set
the vlan tag, and it has been used for SRIOV VFs used for hostdev
interfaces for several years, but for some reason, the vlan tag for
macvtap passthrough devices was stubbed out with a -1.

This patch moves a bit of common validation down to a lower level
(virNetDevReplaceNetConfig()) so it is shared by hostdev and macvtap
modes, and updates the macvtap caller to actually send the vlan config
instead of -1.
docs/formatdomain.html.in
docs/formatnetwork.html.in
src/lxc/lxc_process.c
src/network/bridge_driver.c
src/qemu/qemu_interface.c
src/util/virhostdev.c
src/util/virnetdev.c
src/util/virnetdev.h
src/util/virnetdevmacvlan.c
src/util/virnetdevmacvlan.h