[ovs-dev] [PATCH 2/3] [RFC] datapath: tunnelling: Pass l4_offset to update_header callback

Jesse Gross jesse at nicira.com
Fri Apr 6 00:34:21 UTC 2012


On Tue, Apr 3, 2012 at 10:14 PM, Simon Horman <horms at verge.net.au> wrote:
> The STT protocol's header includes a field for the offset
> to the start of the l4 header. It seems that this
> is the value of the transport_offset of the original SKB and
> making that value available to the update_header callback avoids
> STT needing to calculate the offset.
>
> Signed-off-by: Simon Horman <horms at verge.net.au>

Isn't it possible to quickly compute the L4 offset if you know the
size of the header (which in STT is fixed)?  I'm just trying to
minimize the amount of protocol-specific code in the generic tunneling
code as we add more protocols.



More information about the dev mailing list