[libvirt] Support interface network stats for SR-IOV in Switchdev mode(VF representors)

Jai Singh Rana jai.rana at gmail.com
Wed Jan 31 11:32:59 UTC 2018


Hi All,

Currently libvirt does not support networks interface stats for
<interface type='hostdev'>.

With availability of switchdev model in linux, it is possible to
capture stats for SR-IOV VFs on host using its VF representor
interface on host for nics supporting switchdev model.

https://github.com/torvalds/linux/blob/master/Documentation/networking/switchdev.txt

I want to preapre a patch supporting this feature for hostdev and
write some function like
'virHostdevSwitchdevVfRepresentorInterfaceStats' for returning stats.
Should I include this function and supporting methods in
src/util/virhostdev.c or should i include it in new file something
like src/util/virswitchdev.c .


Thanks,
Jai




More information about the libvir-list mailing list