From: Ethan Jackson Date: Tue, 22 Mar 2011 22:31:59 +0000 (-0700) Subject: vswitchd: Properly calculate output port. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbb1951c485766b82b365b7f25ec917867b2ecf4;p=openvswitch vswitchd: Properly calculate output port. This was causing segfaults on my system. --- 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