[ovs-dev] [PATCH 6/7] ofproto-dpif: Keep perfect fitness on tunnel input.

Jarno Rajahalme jarno.rajahalme at nsn.com
Thu Apr 18 15:07:44 UTC 2013


As the flow is no longer modified (apart from the in_port) on tunnel
input, the perfect fitness can be retained.

Signed-off-by: Jarno Rajahalme <jarno.rajahalme at nsn.com>
---
 ofproto/ofproto-dpif.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index a444701..0f97b6f 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -3838,9 +3838,6 @@ ofproto_receive(const struct dpif_backer *backer, struct ofpbuf *packet,
         }
         port = ofport_dpif_cast(ofport);
 
-        /* We can't reproduce 'key' from 'flow'. */
-        fitness = fitness == ODP_FIT_PERFECT ? ODP_FIT_TOO_MUCH : fitness;
-
         /* XXX: Since the tunnel module is not scoped per backer, it's
          * theoretically possible that we'll receive an ofport belonging to an
          * entirely different datapath.  In practice, this can't happen because
-- 
1.7.10.4




More information about the dev mailing list