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

2018-02-07 Thread Jai Singh Rana
After deriving VF representor name on host based on BDF info in 'hostdev' and querying net sysfs entries, virNetDevTapInterfaceStats defined in virnetdevtap.c already serves the purpose for returning stats based on interface name. Is it ok to define a macro as follows to avoid duplicate code or

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

2018-01-31 Thread Jai Singh Rana
Thanks Daniel for the feedback. On Wed, Jan 31, 2018 at 5:07 PM, Daniel P. Berrangé wrote: > On Wed, Jan 31, 2018 at 05:02:59PM +0530, Jai Singh Rana wrote: >> Hi All, >> >> Currently libvirt does not support networks interface stats for >> . >> >> With availability of

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

2018-01-31 Thread Daniel P . Berrangé
On Wed, Jan 31, 2018 at 05:02:59PM +0530, Jai Singh Rana wrote: > Hi All, > > Currently libvirt does not support networks interface stats for > . > > 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

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

2018-01-31 Thread Jai Singh Rana
Hi All, Currently libvirt does not support networks interface stats for . 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.