security: support user data retrieval
authorAnoob Joseph <anoob.joseph@caviumnetworks.com>
Mon, 18 Dec 2017 07:15:04 +0000 (07:15 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Sat, 20 Jan 2018 15:10:20 +0000 (16:10 +0100)
commit1a08c379b9b5edeb0214378daa3fb2e56fba49ba
treee11da6dcd5ac4c44fef45c71eb930034dff91288
parent27c2e74719614df32e5358b9adfbed013ac7991c
security: support user data retrieval

In case of inline protocol processed ingress traffic, the packet may not
have enough information to determine the security parameters with which
the packet was processed. In such cases, application could get metadata
from the packet which could be used to identify the security parameters
with which the packet was processed.

Application could register "userdata" with the security session, and
this could be retrieved from the metadata of inline processed packets.
The metadata returned by "rte_security_get_pkt_metadata()" will be
device specific. Also the driver is expected to return the application
registered "userdata" as is, without any modifications.

Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
doc/guides/prog_guide/rte_security.rst
lib/librte_security/rte_security.c
lib/librte_security/rte_security.h
lib/librte_security/rte_security_driver.h
lib/librte_security/rte_security_version.map