git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45a1c58
)
ofproto-dpif: Fix behavior when a subset of VLANs is trunked.
author
Ben Pfaff
<blp@nicira.com>
Wed, 24 Aug 2011 22:27:14 +0000
(15:27 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 16 Sep 2011 16:13:47 +0000
(09:13 -0700)
Reported-by: Philippe Jung <phil.jung@free.fr>
ofproto/ofproto-dpif.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto-dpif.c
b/ofproto/ofproto-dpif.c
index
5ebf057
..
2d0b83c
100644
(file)
--- a/
ofproto/ofproto-dpif.c
+++ b/
ofproto/ofproto-dpif.c
@@
-1061,7
+1061,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);