From: Jarno Rajahalme Date: Mon, 6 May 2013 11:56:18 +0000 (+0300) Subject: ofproto-dpif: Keep perfect fitness on tunnel input. X-Git-Tag: sliver-openvswitch-1.10.90-3~16^2~13 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=451352a1553c8a38cc7f681047deb13c807bd492;p=sliver-openvswitch.git ofproto-dpif: Keep perfect fitness on tunnel input. 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 Signed-off-by: Ben Pfaff --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index c9d4a0496..49bf1e4d5 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -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