[PATCH] domain_conf: set ifname for ovs vhostuser ifname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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