examples/ipsec-secgw: add poll mode worker for inline proto
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Fri, 29 Apr 2022 20:44:16 +0000 (02:14 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 1 Jun 2022 14:26:34 +0000 (16:26 +0200)
commit0d76e22d11110000d81c08d0c9257891c258a9c7
tree57d677b6daeb7c286fdc7cbe7e119affca8fbd52
parent4fbfa6c7c921cd827b33524e6339d434aa8ac003
examples/ipsec-secgw: add poll mode worker for inline proto

Add separate worker thread when all SA's are of type
inline protocol offload and librte_ipsec is enabled
in order to make it more optimal for that case.
Current default worker supports all kinds of SA leading
to doing lot of per-packet checks and branching based on
SA type which can be of 5 types of SA's.

Also make a provision for choosing different poll mode workers
for different combinations of SA types with default being
existing poll mode worker that supports all kinds of SA's.

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-secgw.h
examples/ipsec-secgw/ipsec_worker.c
examples/ipsec-secgw/ipsec_worker.h
examples/ipsec-secgw/sa.c