> +#ifndef _SYS_QUEUE_H_ > +#define _SYS_QUEUE_H_ Mixing TAB and space multiple places in this patch. Just use space.
> +#include <stddef.h> > + > +/* > + * FreeBSD provides __containerof in <sys/cdefs.h>, other platforms do > not. > + * Used by STAILQ_LAST, LIST_PREV, TAILQ_LAST_FAST and > TAILQ_PREV_FAST. > + */ > +#ifndef __containerof > +#define __containerof(ptr, type, member) > \ > + ((type *)(void *)((char *)(ptr) - offsetof(type, member))) > +#endif The implementation differs from that of container_of in rte_common.h: https://elixir.bootlin.com/dpdk/v26.11-rc3/source/lib/eal/include/rte_common.h#L1083 Don't know if it matters.

