Re: [PATCHv2 5/9] network: store network fdb setting in NetDef actual object

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

 




On 12/02/2014 12:08 PM, Laine Stump wrote:
> At the time that the network driver allocates a connection to a
> network, the tap device that will be used hasn't yet been created -
> that will be done later by qemu (or lxc or whoever) - but if the
> network has fdb='managed', then when we do get around to creating the
> tap device, we will need to add an entry for it to the network
> bridge's fdb (forwarding database) *and* turn off learning and
> unicast_flood for that tap device in the bridge's sysfs settings. This
> means that qemu needs to know both the bridge name as well as the
> setting of fdb, so we either need to create a new API to retrieve that
> info, or just pass it back in the ActualNetDef that is created during
> networkAllocateActualDevice. We choose the latter method, since it's
> already done for the bridge device, and it has the side effect of
> making the information available in domain status.
> 
> (NB: in the future, I think that the tap device should actually be
> created by networkAllocateActualDevice(), as that will solve several
> other problems, but that is a battle for another day, and this
> information will still be useful outside the network driver)
> ---
> 
> Changes from V1: Only names of attribute and its values
> 
>  src/conf/domain_conf.c      | 29 +++++++++++++++++++++++++++++
>  src/conf/domain_conf.h      |  2 ++
>  src/libvirt_private.syms    |  1 +
>  src/network/bridge_driver.c |  4 +++-
>  4 files changed, 35 insertions(+), 1 deletion(-)
> 

ACK for existing flow/names...

John

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