[dpdk-dev] [PATCH v2 05/15] security: switch metadata to dynamic mbuf field

Thomas Monjalon thomas at monjalon.net
Tue Oct 27 09:52:04 CET 2020


27/10/2020 03:01, Wang, Haiyue:
> From: Thomas Monjalon <thomas at monjalon.net>
> For ixgbe PMD,
> 
> Acked-by: Haiyue Wang <haiyue.wang at intel.com>
> 
> But I feel that 'rte_security_dynfield' name is too generic, can it be
> more specific about what the field is used for ?
> 
> Like below ;-)
> 
> #define RTE_SECURITY_DEV_METADATA(m) \
> 	RTE_MBUF_DYNFIELD((m), \
> 			  rte_security_dev_metadata_offset, \
> 			  RTE_SECURITY_DEV_METADATA_TYPE *)

Yes rte_security_dynfield is too much generic,
as well as RTE_SECURITY_DEV_METADATA.
It seems there are different data stored in this field.
We should have different fields for different data.
But such cleanup is another step for someone else.





More information about the dev mailing list