[ovs-dev] [minor fixes 2/6] bridge: Initialize mirrors' uuid member.

Ethan Jackson ethan at nicira.com
Mon Apr 18 18:05:23 UTC 2011


Looks Good.

Ethan

On Mon, Apr 11, 2011 at 11:01 AM, Ben Pfaff <blp at nicira.com> wrote:
> Otherwise mirrors get destroyed and re-created on every reconfiguration.
> ---
>  vswitchd/bridge.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
> index 59100cc..1e5caf9 100644
> --- a/vswitchd/bridge.c
> +++ b/vswitchd/bridge.c
> @@ -3504,6 +3504,7 @@ mirror_create(struct bridge *br, struct ovsrec_mirror *cfg)
>     mac_learning_flush(br->ml);
>
>     br->mirrors[i] = m = xzalloc(sizeof *m);
> +    m->uuid = cfg->header_.uuid;
>     m->bridge = br;
>     m->idx = i;
>     m->name = xstrdup(cfg->name);
> --
> 1.7.1
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>



More information about the dev mailing list