[ovs-dev] [PATCH] vswitchd: Properly calculate output port.

Ethan Jackson ethan at nicira.com
Tue Mar 22 15:33:25 PDT 2011


This was causing segfaults on my system.
---
 vswitchd/bridge.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 734d0de..bcaf1d1 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
-- 
1.7.4.1




More information about the dev mailing list