ofproto-dpif: Keep perfect fitness on tunnel input.
authorJarno Rajahalme <jarno.rajahalme@nsn.com>
Mon, 6 May 2013 11:56:18 +0000 (14:56 +0300)
committerBen Pfaff <blp@nicira.com>
Wed, 8 May 2013 19:48:58 +0000 (12:48 -0700)
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@nsn.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c

index c9d4a04..49bf1e4 100644 (file)
@@ -3930,9 +3930,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