Re: [libvirt] [PATCH v3] qemu: set default vhost-user ifname

2017-01-05 Thread Mehdi Abaakouk
Thanks a lot for fixing my patch issue ! On Thu, Dec 22, 2016 at 10:45:15AM +0100, Michal Privoznik wrote: Based on work of Mehdi Abaakouk <sil...@sileht.net>. When parsing vhost-user interface XML and no ifname is found we can try to fill it in in post parse callback. The way this works

[libvirt] [PATCH v2 1/1] qemu_domain: set default ovs vhostuser ifname

2016-12-20 Thread Mehdi Abaakouk
This change adds a new helper function that return a ifname from the vhostuser unix-socket path but only if the interface is managed by openvswitch This new function is issue to autodetect the ifname for openvswitch managed vhostuser interface. --- src/libvirt_private.syms| 1 +

[libvirt] [PATCH v2 0/1] qemu_domain: set default ovs vhostuser ifname

2016-12-20 Thread Mehdi Abaakouk
Hi, I have fixed the two remarks. ifname is now set in qemuDomainDeviceDefPostParse(). Regards, Mehdi Abaakouk (1): qemu_domain: set default ovs vhostuser ifname src/libvirt_private.syms| 1 + src/qemu/qemu_domain.c | 21 +++-- src/util

Re: [libvirt] [PATCH] domain_conf: set ifname for ovs vhostuser ifname

2016-12-15 Thread Mehdi Abaakouk
Any comments on this ? On Fri, Dec 09, 2016 at 01:24:52PM +0100, Mehdi Abaakouk wrote: Hi, This is the followup of '[PATCH v3 4/4] domain_conf: autodetect vhostuser ifname'. I have rewritten a better version that shouldn't have the same concern as before. I have isolated the code

[libvirt] [PATCH] domain_conf: set ifname for ovs vhostuser ifname

2016-12-09 Thread Mehdi Abaakouk
This change adds a new helper function that return a ifname from the vhostuser unix-socket path but only if the interface is managed by openvswitch This new function is issue to autodetect the ifname for openvswitch managed vhostuser interface. --- src/conf/domain_conf.c | 5 +

[libvirt] [PATCH] domain_conf: set ifname for ovs vhostuser ifname

2016-12-09 Thread Mehdi Abaakouk
, Mehdi Abaakouk (1): domain_conf: set ifname for ovs vhostuser ifname src/conf/domain_conf.c | 5 + src/libvirt_private.syms| 1 + src/util/virnetdevopenvswitch.c | 41 + src/util/virnetdevopenvswitch.h | 3 +++ 4 files changed, 50

Re: [libvirt] [PATCH v3 1/4] Gathering vhostuser interface stats with ovs

2016-12-09 Thread Mehdi Abaakouk
. Congratulations on your first libvirt contribution! Thank you for the quick processing of the changes! -- Mehdi Abaakouk mail: sil...@sileht.net irc: sileht -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH v3 1/4] Gathering vhostuser interface stats with ovs

2016-12-08 Thread Mehdi Abaakouk
s $ virsh domifstat dpdkvhostuser0 Cheers, -- Mehdi Abaakouk mail: sil...@sileht.net irc: sileht -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH v3 4/4] domain_conf: autodetect vhostuser ifname

2016-12-08 Thread Mehdi Abaakouk
On Thu, Dec 08, 2016 at 01:51:10PM +0100, Michal Privoznik wrote: On 18.11.2016 23:51, Mehdi Abaakouk wrote: From: Mehdi Abaakouk <sil...@redhat.com> I don't think this is a good idea. For instance, for the following XML: this code would produce

Re: [libvirt] [PATCH v3 0/4] Gathering network interface statistics with openvswitch

2016-12-06 Thread Mehdi Abaakouk
Hi, Sorry to bother you again, but I still have no comment about using openvswitch statistics command to retrieve vhost-user interface statistics. Regards, On Fri, Nov 18, 2016 at 11:51:12PM +0100, Mehdi Abaakouk wrote: This new version removes the virstat.c from locale configuration

Re: [libvirt] [PATCH v3 0/4] Gathering network interface statistics with openvswitch

2016-11-28 Thread Mehdi Abaakouk
Hi, Can I have any feedback of this ? Thank in advance. Le 2016-11-18 23:51, Mehdi Abaakouk a écrit : This new version removes the virstat.c from locale configuration. It also adds a new commit to autodected the ifname of the ovs vhostuser. Mehdi Abaakouk (4): Gathering vhostuser

[libvirt] [PATCH v3 1/4] Gathering vhostuser interface stats with ovs

2016-11-18 Thread Mehdi Abaakouk
From: Mehdi Abaakouk <sil...@redhat.com> When vhostuser interfaces are used, the interface statistics are not available in /proc/net/dev. This change looks at the openvswitch interfaces statistics tables to provide this information for vhostuser interface. Note that in openvswitch worl

[libvirt] [PATCH v3 3/4] Move virstat.c code to virnetdevtap.c

2016-11-18 Thread Mehdi Abaakouk
From: Mehdi Abaakouk <sil...@redhat.com> This is just a code move of virstat.c to virnetdevtap.c --- po/POTFILES.in | 1 - src/Makefile.am| 1 - src/libvirt_private.syms | 4 +- src/libxl/libxl_driver.c | 2 +- src/lxc/lxc_driver.c | 1 - src/

[libvirt] [PATCH v3 0/4] Gathering network interface statistics with openvswitch

2016-11-18 Thread Mehdi Abaakouk
This new version removes the virstat.c from locale configuration. It also adds a new commit to autodected the ifname of the ovs vhostuser. Mehdi Abaakouk (4): Gathering vhostuser interface stats with ovs virstat: fix signature of virstat helper Move virstat.c code to virnetdevtap.c

[libvirt] [PATCH v3 4/4] domain_conf: autodetect vhostuser ifname

2016-11-18 Thread Mehdi Abaakouk
From: Mehdi Abaakouk <sil...@redhat.com> This change puts the socket filename as ifname for vhostuser netwok interface. The filename is the name of the openvswitch interface, this allows the qemuDomainInterfaceStats to work out of the box without having to manually set the ifname. --- sr

[libvirt] [PATCH v3 2/4] virstat: fix signature of virstat helper

2016-11-18 Thread Mehdi Abaakouk
From: Mehdi Abaakouk <sil...@redhat.com> In preparation to the code move to virnetdevtap.c, this change: * renames virNetInterfaceStats to virNetDevTapInterfaceStats * changes 'path' to 'ifname', to use the same vocable as other method in virnetdevtap.c. * Add the attributes checker --

[libvirt] [PATCH 1/3] Gathering vhostuser interface stats with ovs

2016-11-18 Thread Mehdi Abaakouk
From: Mehdi Abaakouk <sil...@redhat.com> When vhostuser interfaces are used, the interface statistics are not available in /proc/net/dev. This change looks at the openvswitch interfaces statistics tables to provide this information for vhostuser interface. Note that in openvswitch worl

[libvirt] [PATCH 3/3] Move virstat.c code to virnetdevtap.c

2016-11-18 Thread Mehdi Abaakouk
From: Mehdi Abaakouk <sil...@redhat.com> This is just a code move of virstat.c to virnetdevtap.c --- src/Makefile.am| 1 - src/libvirt_private.syms | 4 +- src/libxl/libxl_driver.c | 2 +- src/lxc/lxc_driver.c | 1 - src/openvz/openvz_driver.c | 2 +- sr

[libvirt] [PATCH v2 0/3] Gathering network interface statistics with openvswitch

2016-11-18 Thread Mehdi Abaakouk
Hi, The new code have been moved to virnetdevopenvswitch.c I have also sent the refactoring of virstat.c Regards, Mehdi Abaakouk (3): Gathering vhostuser interface stats with ovs virstat: fix signature of virstat helper Move virstat.c code to virnetdevtap.c src/Makefile.am

[libvirt] [PATCH 2/3] virstat: fix signature of virstat helper

2016-11-18 Thread Mehdi Abaakouk
From: Mehdi Abaakouk <sil...@redhat.com> In preparation to the code move to virnetdevtap.c, this change: * renames virNetInterfaceStats to virNetDevTapInterfaceStats * changes 'path' to 'ifname', to use the same vocable as other method in virnetdevtap.c. * Add the attributes checker --

[libvirt] [PATCH] virstats: Gathering net interface stats with ovs

2016-11-18 Thread Mehdi Abaakouk
When vhostuser or ovs interfaces are used, the interface statistics are not always available in /proc/net/dev. This change looks at the openvswitch interfaces statistics tables to provide this information in additional to /proc/net/dev. Note that in openvswitch world drop/error doesn't always

[libvirt] [PATCH] Gathering network interface statistics with openvswitch

2016-11-18 Thread Mehdi Abaakouk
Hi, To follow up, my question about vhostuser/ovs interfaces statistics. This is my porposal to implement this feature. Regards, Mehdi Abaakouk (1): virstats: Gathering net interface stats with ovs src/util/virstats.c | 99 +++-- 1 file

[libvirt] vhostuser and openvswitch interface statistics

2016-11-17 Thread Mehdi Abaakouk
t;) ? I have started to write a PoC code that fallback to OVS in virNetInterfaceStats() when we don't found the interface in /proc/net/dev. Does this kind of contribution is welcome/match your plan ? Regards, -- Mehdi Abaakouk mail: sil...@sileht.net irc: sileht -- libvir-list mailing lis