From: Ben Pfaff Date: Thu, 28 Jul 2011 00:06:50 +0000 (-0700) Subject: ofproto-dpif: Fix mirror configuration and deconfiguration. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b28d8649d96325f99cbc73fae8215face4a0ce4;p=openvswitch 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 --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index a700d5ed..1165570a 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; }