DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Morten Brørup" <mb@smartsharesystems.com>
To: "Stephen Hemminger" <stephen@networkplumber.org>, <dev@dpdk.org>
Cc: "Dmitry Kozlyuk" <dmitry.kozliuk@gmail.com>
Subject: RE: [PATCH v2 2/6] eal: add rte_queue.h with full set of list macros
Date: Wed, 2 Dec 2026 09:33:50 +0100	[thread overview]
Message-ID: <98CBD80474FA8B44BF855DF32C47DC35F65B4F@smartserver.smartshare.dk> (raw)
In-Reply-To: <20261202011153.3255223-3-stephen@networkplumber.org>

> +#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.


  reply	other threads:[~2026-12-02  8:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-17 17:19 [PATCH 0/6] provide a complete set of BSD list macros Stephen Hemminger
2026-09-17 17:19 ` [PATCH 1/6] net/bnxt: fix use after free when freeing filters Stephen Hemminger
2026-09-17 17:19 ` [PATCH 2/6] eal: add rte_queue.h with full set of list macros Stephen Hemminger
2026-09-17 17:19 ` [PATCH 3/6] build: use rte_queue.h instead of sys/queue.h Stephen Hemminger
2026-09-17 17:19 ` [PATCH 4/6] build: remove private FOREACH_SAFE definitions Stephen Hemminger
2026-09-17 17:19 ` [PATCH 5/6] eal: deprecate RTE_TAILQ and RTE_STAILQ macro wrappers Stephen Hemminger
2026-09-17 17:19 ` [PATCH 6/6] devtools: forbid direct use of sys/queue.h Stephen Hemminger
2026-09-18 11:34 ` [PATCH 0/6] provide a complete set of BSD list macros Marat Khalili
2026-09-18 11:50   ` Bruce Richardson
2026-12-02  1:05 ` [PATCH v2 " Stephen Hemminger
2026-12-02  1:05   ` [PATCH v2 1/6] net/bnxt: fix use after free when freeing filters Stephen Hemminger
2026-12-02  1:05   ` [PATCH v2 2/6] eal: add rte_queue.h with full set of list macros Stephen Hemminger
2026-12-02  8:33     ` Morten Brørup [this message]
2026-12-02  1:05   ` [PATCH v2 3/6] build: use rte_queue.h instead of sys/queue.h Stephen Hemminger
2026-12-02  1:05   ` [PATCH v2 4/6] build: remove private FOREACH_SAFE definitions Stephen Hemminger
2026-12-02  1:05   ` [PATCH v2 5/6] eal: deprecate RTE_TAILQ and RTE_STAILQ macro wrappers Stephen Hemminger
2026-12-02  1:05   ` [PATCH v2 6/6] devtools: forbid direct use of sys/queue.h Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=98CBD80474FA8B44BF855DF32C47DC35F65B4F@smartserver.smartshare.dk \
    --to=mb@smartsharesystems.com \
    --cc=dev@dpdk.org \
    --cc=dmitry.kozliuk@gmail.com \
    --cc=stephen@networkplumber.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox