[dpdk-dev] [PATCH v4] node: switch IPv4 metadata to dynamic mbuf field
Thomas Monjalon
thomas at monjalon.net
Wed Oct 28 11:08:47 CET 2020
28/10/2020 10:30, Nithin Dabilpuram:
> From: Thomas Monjalon <thomas at monjalon.net>
>
> The node_mbuf_priv1 was stored in the deprecated mbuf field udata64.
> It is moved to a dynamic field in order to allow removal of udata64.
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> Signed-off-by: Nithin Dabilpuram <ndabilpuram at marvell.com>
[...]
> + IP4_LOOKUP_NODE_PRIV1_OFF(node->ctx) = node_mbuf_priv1_dynfield_offset;
That's interesting.
You copy the offset in the node context for better performance.
How much is it better than with global offset variable?
How much it decreases compared to a static mbuf field?
More information about the dev
mailing list