[PATCH v3 0/2] Support network stats for VF representor interface

[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 SR-IOV device with interface_type as 'hostdev' provided device
supports VF represontor in switchdev mode[1] on host.

These stats are supported by adding helper APIs for getting/verifying VF
representor name based on PCI Bus:Device:Function information in domains
'hostdev' structure and querying required net sysfs directory and file
entries on host according to switchdev model. These helper APIs are then
used in qemu/conf to get the interface stats for VF representor on host
of pci SR-IOV device.

[1]  https://www.kernel.org/doc/Documentation/networking/switchdev.txt
V2   https://www.redhat.com/archives/libvir-list/2018-February/msg00561.html

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

 docs/news.xml               |   9 ++
 po/POTFILES.in              |   1 +
 src/conf/domain_conf.c      |  15 ++
 src/libvirt_private.syms    |   7 +
 src/qemu/qemu_driver.c      |  33 +++-
 src/util/Makefile.inc.am    |   2 +
 src/util/virhostdev.c       |   2 +-
 src/util/virhostdev.h       |   8 +
 src/util/virnetdevhostdev.c | 374 ++++++++++++++++++++++++++++++++++++++++++++
 src/util/virnetdevhostdev.h |  35 +++++
 10 files changed, 481 insertions(+), 5 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