examples/ipsec-secgw: use HW parsed packet type in poll mode
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Fri, 29 Apr 2022 20:44:12 +0000 (02:14 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 1 Jun 2022 14:26:33 +0000 (16:26 +0200)
commitd04bb1c52647952e191f5ba2c56319c0139afc73
tree77b702a8cc10ee61396949c3f40a72f8a5c3a0fd
parentd24471e5786b71e0c1cb3c2362397a1a27201a74
examples/ipsec-secgw: use HW parsed packet type in poll mode

Use HW parsed packet type when ethdev supports necessary protocols.
If packet type is not supported, then register ethdev callbacks
for parse packet in SW. This is better for performance as it
effects fast path.

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