ofproto-dpif: Fix mirror configuration and deconfiguration.
authorBen Pfaff <blp@nicira.com>
Thu, 28 Jul 2011 00:06:50 +0000 (17:06 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 28 Jul 2011 18:24:32 +0000 (11:24 -0700)
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>
ofproto/ofproto-dpif.c

index a700d5e..1165570 100644 (file)
@@ -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;
     }