]> git.droids-corp.org - dpdk.git/commit
examples/ipsec-secgw: get security context from lcore conf
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Fri, 29 Apr 2022 20:44:14 +0000 (02:14 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 1 Jun 2022 14:26:34 +0000 (16:26 +0200)
commitc7e6d808e5163916181a59b2aaecf25c9c09b24c
tree5550984cd22e2643ba11dcd372ff2f24f7c36c45
parenta2b445b810ac75566ea2f05e66817dd96c0e3aff
examples/ipsec-secgw: get security context from lcore conf

Store security context pointer in lcore Rx queue config and
get it from there in fast path for better performance.
Currently rte_eth_dev_get_sec_ctx() which is meant to be control
path API is called per packet basis. For every call to that
API, ethdev port status is checked.

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