From: Ben Pfaff <blp@nicira.com> Date: Thu, 28 Jul 2011 00:06:50 +0000 (-0700) Subject: ofproto-dpif: Fix mirror configuration and deconfiguration. X-Git-Tag: v1.2.0~13 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8b28d8649d96325f99cbc73fae8215face4a0ce4;p=sliver-openvswitch.git ofproto-dpif: Fix mirror configuration and deconfiguration. Deleting or updating a mirror didn't work: mirror_set() didn't set the 'aux' member so mirror_lookup() couldn't find the mirror on that basis. Bug #6617. Reported-by: David Tsai <dtsai@nicira.com> --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index a700d5ed9..1165570a3 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -1267,6 +1267,7 @@ mirror_set(struct ofproto *ofproto_, void *aux, mirror = ofproto->mirrors[idx] = xzalloc(sizeof *mirror); mirror->ofproto = ofproto; mirror->idx = idx; + mirror->aux = aux; mirror->out_vlan = -1; mirror->name = NULL; }