]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Gathering vhostuser interface stats with ovs
authorMehdi Abaakouk <sileht@redhat.com>
Fri, 18 Nov 2016 22:51:13 +0000 (23:51 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 9 Dec 2016 09:23:09 +0000 (10:23 +0100)
commit013df874db7e3e4b4f8a8fa25e068da776e0e2c7
tree1ca3c10a6531b02367baebcf3bcec9d5fbefcec6
parent03876cf506dff07d56cb0b4baec316e9f7c052e0
Gathering vhostuser interface stats with ovs

When vhostuser interfaces are used, the interface statistics
are not available in /proc/net/dev.

This change looks at the openvswitch interfaces statistics
tables to provide this information for vhostuser interface.

Note that in openvswitch world drop/error doesn't always make sense
for some interface type. When these informations are not available we
set them to 0 on the virDomainInterfaceStats.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/qemu/qemu_driver.c
src/util/virnetdevopenvswitch.c
src/util/virnetdevopenvswitch.h