From 8b28d8649d96325f99cbc73fae8215face4a0ce4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 27 Jul 2011 17:06:50 -0700 Subject: [PATCH] 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 --- ofproto/ofproto-dpif.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2