summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-07-27 17:06:50 -0700
committerBen Pfaff <blp@nicira.com>2011-07-28 11:24:32 -0700
commit8b28d8649d96325f99cbc73fae8215face4a0ce4 (patch)
treea6dc3621564096122291fec77b5706f7bbbc8de2 /ofproto
parent8a3d2fef9775498320ca7ea014dbdc4cbb14bbb2 (diff)
downloadopenvswitch-8b28d8649d96325f99cbc73fae8215face4a0ce4.tar.gz
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>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif.c1
1 files changed, 1 insertions, 0 deletions
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;
}