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

Mehdi Abaakouk sileht at sileht.net
Thu Dec 15 08:54:07 UTC 2016


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 that detects the ifname in util/virnetdevopenvswitch.c
>in a new helper function virNetDevOpenvswitchGetVhostuserIfname(). Unlike the
>previous version, it returns a ifname only if the vhostuser interface is
>handled by openswitch. So, if the vhostuser is not handled by openvswitch, the
>ifname stay NULL.
>
>Now, virDomainNetDefParseXML() only calls this function, it does nothing else now.
>
>Cheers,
>
>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 insertions(+)
>
>-- 
>2.10.2
>
>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list

-- 
Mehdi Abaakouk
mail: sileht at sileht.net
irc: sileht




More information about the libvir-list mailing list