[ovs-dev] [PATCH v5 5/6] ofproto-dpif-rid: Make lookups cheaper.

Jarno Rajahalme jrajahalme at nicira.com
Wed Aug 26 20:04:24 UTC 2015

> On Aug 26, 2015, at 12:46 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Fri, Aug 21, 2015 at 03:25:22PM -0700, Jarno Rajahalme wrote:
>> Tunnel metadata has grown large since the addition of Geneve options.
>> Copying tunnel metadata for performing a lookup is not necessary.
>> Change recirc_metadata to use a pointer to struct flow_tnl, and only
>> copy the tunnel metadata when needed, and only copy as little of it as
>> possible.
>> Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
> The order of members in struct flow_tnl is now important, so I'd add a
> comment in that structure explaining that.


> Which lookups does this speed up?

This patch removes a large-ish copy from the recirculation context lookup, which is performed for each recirculated upcall and revalidation of a recirculating flow.

I have not quantified the effect of this in any way, though.


More information about the dev mailing list