[libvirt] [PATCH 0/2] Support network stats for hostdev(SR-IOV) in Switchdev mode

Jai Singh Rana posted 2 patches 6 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180209140045.25480-1-JaiSingh.Rana@cavium.com
There is a newer version of this series
po/POTFILES.in              |   1 +
src/Makefile.am             |   1 +
src/conf/domain_conf.c      |   7 ++
src/libvirt_private.syms    |   5 +
src/qemu/qemu_driver.c      |  34 +++++-
src/util/virhostdev.c       |  10 ++
src/util/virhostdev.h       |   6 +
src/util/virnetdevhostdev.c | 284 ++++++++++++++++++++++++++++++++++++++++++++
src/util/virnetdevhostdev.h |  33 +++++
9 files changed, 377 insertions(+), 4 deletions(-)
create mode 100644 src/util/virnetdevhostdev.c
create mode 100644 src/util/virnetdevhostdev.h
[libvirt] [PATCH 0/2] Support network stats for hostdev(SR-IOV) in Switchdev mode
Posted by Jai Singh Rana 6 years, 1 month ago
With availability of switchdev model in linux, it is possible to capture
stats for hostdev SR-IOV VFs using its VF representor interface name on
host for nics supporting switchdev model.

These stats are supported by adding helper APIs for getting VF
Representor name based on BDF info in 'hostdev' and querying required
net sysfs entries on host. These helper APIs are then used in
qemu_driver to get the hostdev interface stats for pci SR-IOV device.

[1] https://www.kernel.org/doc/Documentation/networking/switchdev.txt

Jai Singh Rana (2):
  util: Add helper APIs to get/verify VF Representor name
  qemu: conf: Network stats support for hostdev VF Representor

 po/POTFILES.in              |   1 +
 src/Makefile.am             |   1 +
 src/conf/domain_conf.c      |   7 ++
 src/libvirt_private.syms    |   5 +
 src/qemu/qemu_driver.c      |  34 +++++-
 src/util/virhostdev.c       |  10 ++
 src/util/virhostdev.h       |   6 +
 src/util/virnetdevhostdev.c | 284 ++++++++++++++++++++++++++++++++++++++++++++
 src/util/virnetdevhostdev.h |  33 +++++
 9 files changed, 377 insertions(+), 4 deletions(-)
 create mode 100644 src/util/virnetdevhostdev.c
 create mode 100644 src/util/virnetdevhostdev.h

-- 
2.13.6

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list