[dpdk-dev] [PATCH 1/3] eal: introduce structure marker typedefs
Thomas Monjalon
thomas at monjalon.net
Tue Dec 10 23:46:20 CET 2019
08/12/2019 12:34, jerinj at marvell.com:
> From: Jerin Jacob <jerinj at marvell.com>
>
> Introduce EAL typedef for structure 1B, 2B, 4B, 8B alignment marking and
> a generic marker for a point in a structure.
>
> Signed-off-by: Jerin Jacob <jerinj at marvell.com>
> ---
> lib/librte_eal/common/include/rte_common.h | 12 ++++++++++++
Good idea, thanks.
> +/** Generic marker for a point in a structure. */
I think "a point" may be replaced with "any place" or something else?
> +__extension__ typedef void *RTE_MARKER[0];
Why do we need an extension?
If it is part of C11, we should use RTE_STD_C11 instead.
If it is another reason, we could create another meaningful EAL macro.
More information about the dev
mailing list