security: add option for faster user/meta data access
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Wed, 15 Sep 2021 16:30:00 +0000 (22:00 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 28 Sep 2021 06:43:47 +0000 (08:43 +0200)
commitd08dcd28c3b245468a9859b7b9a288247dfc95f1
tree9cb94d75360369453037d1c1505e4e15af406665
parent6d1f8c13190167d4fa31acb2ba06ff0c8edf09b4
security: add option for faster user/meta data access

Currently rte_security_set_pkt_metadata() and rte_security_get_userdata()
methods to set pkt metadata on Inline outbound and get userdata
after Inline inbound processing is always driver specific callbacks.

For drivers that do not have much to do in the callbacks but just
to update metadata in rte_security dynamic field and get userdata
from rte_security dynamic field, having to just to PMD specific
callback is costly per packet operation. This patch provides
a mechanism to do the same in inline function and avoid function
pointer jump if a driver supports the same.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
doc/guides/rel_notes/deprecation.rst
doc/guides/rel_notes/release_21_11.rst
lib/security/rte_security.c
lib/security/rte_security.h
lib/security/version.map