[ovs-dev] [trunks 2/3] ofproto-dpif: Fix behavior when a subset of VLANs is trunked.
Ben Pfaff
blp at nicira.com
Wed Aug 24 15:56:33 PDT 2011
Reported-by: Philippe Jung <phil.jung at free.fr>
---
ofproto/ofproto-dpif.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index f09c230..c05ca9e 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -1056,7 +1056,7 @@ bundle_set(struct ofproto *ofproto_, void *aux,
}
/* Get trunked VLANs. */
- trunks = s->vlan == -1 ? NULL : s->trunks;
+ trunks = s->vlan == -1 ? s->trunks : NULL;
if (!vlan_bitmap_equal(trunks, bundle->trunks)) {
free(bundle->trunks);
bundle->trunks = vlan_bitmap_clone(trunks);
--
1.7.4.4
More information about the dev
mailing list