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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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       |  11 +++
 src/util/virhostdev.h       |   6 ++
 src/util/virnetdevhostdev.c | 224 ++++++++++++++++++++++++++++++++++++++++++++
 src/util/virnetdevhostdev.h |  33 +++++++
 9 files changed, 318 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux