aboutsummaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-03-22 15:31:59 -0700
committerEthan Jackson <ethan@nicira.com>2011-03-22 15:41:46 -0700
commitbbb1951c485766b82b365b7f25ec917867b2ecf4 (patch)
treee16600da1eaaef53a034e7f6ed55e70350c0786b /vswitchd
parent4f8dc363739f905f190469ca764b5206087b755f (diff)
vswitchd: Properly calculate output port.
This was causing segfaults on my system.
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 734d0de3..bcaf1d12 100644
--- 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