From bbb1951c485766b82b365b7f25ec917867b2ecf4 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Tue, 22 Mar 2011 15:31:59 -0700 Subject: [PATCH] vswitchd: Properly calculate output port. This was causing segfaults on my system. --- vswitchd/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 734d0de36..bcaf1d12d 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 -- 2.39.5