[dpdk-dev] [RFC] mbuf: support dynamic fields and flags

Stephen Hemminger stephen at networkplumber.org
Thu Jul 11 17:31:19 CEST 2019


On Thu, 11 Jul 2019 09:26:19 +0200
Olivier Matz <olivier.matz at 6wind.com> wrote:

> For generic fields, I think they should be declared in this file. For
> instance, if we decide to replace the current m->timestamp field by a
> dynamic field, we should add like this:
> 
> #define RTE_MBUF_DYN_TIMESTAMP_ID "rte_timestamp"
> #define RTE_MBUF_DYN_TIMESTAMP_SIZE sizeof(uint64_t)
> #define RTE_MBUF_DYN_TIMESTAMP_ALIGN __alignof__(uint64_t)


Let's use  structures (like rte_flow) rather that macros for
this?


More information about the dev mailing list