examples/ipsec-secgw: update eth header during route lookup
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Fri, 29 Apr 2022 20:44:15 +0000 (02:14 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 1 Jun 2022 14:26:34 +0000 (16:26 +0200)
commit4fbfa6c7c921cd827b33524e6339d434aa8ac003
treece08a1f559d3f4c094d1c1a58fafc8cd552c8d9b
parentc7e6d808e5163916181a59b2aaecf25c9c09b24c
examples/ipsec-secgw: update eth header during route lookup

Update ethernet header during route lookup instead of doing
way later while performing Tx burst. Advantages to doing
is at route lookup is that no additional IP version checks
based on packet data are needed and packet data is already
in cache as route lookup is already consuming that data.

This is also useful for inline protocol offload cases
of v4inv6 or v6inv4 outbound tunnel operations as
packet data will not have any info about what is the tunnel
protocol.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
examples/ipsec-secgw/ipsec-secgw.c
examples/ipsec-secgw/ipsec_worker.h