projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f8dc36
)
vswitchd: Properly calculate output port.
author
Ethan Jackson
<ethan@nicira.com>
Tue, 22 Mar 2011 22:31:59 +0000
(15:31 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Tue, 22 Mar 2011 22:41:46 +0000
(15:41 -0700)
This was causing segfaults on my system.
vswitchd/bridge.c
patch
|
blob
|
history
diff --git
a/vswitchd/bridge.c
b/vswitchd/bridge.c
index 734d0de366ff632473c9d433d928888b361f428a..bcaf1d12d44d7a307820a6462044447bb874977d 100644
(file)
--- a/
vswitchd/bridge.c
+++ b/
vswitchd/bridge.c
@@
-2921,7
+2921,7
@@
process_flow(struct bridge *br, const struct flow *flow,
/* Determine output port. */
mac = mac_learning_lookup(br->ml, flow->dl_dst, vlan, tags);
if (mac) {
-
mac
= mac->port.p;
+
out_port
= mac->port.p;
} else if (!packet && !eth_addr_is_multicast(flow->dl_dst)) {
/* If we are revalidating but don't have a learning entry then
* eject the flow. Installing a flow that floods packets opens