From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3C42606A325 for ; Wed, 2 Dec 2026 08:33:54 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B1574402D9; Wed, 2 Dec 2026 09:33:53 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTPS id C0B57402D5 for ; Wed, 2 Dec 2026 09:33:51 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 611A621EB3; Wed, 2 Dec 2026 09:33:51 +0100 (CET) Content-class: urn:content-classes:message X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH v2 2/6] eal: add rte_queue.h with full set of list macros X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 2 Dec 2026 09:33:50 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35F65B4F@smartserver.smartshare.dk> In-Reply-To: <20261202011153.3255223-3-stephen@networkplumber.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v2 2/6] eal: add rte_queue.h with full set of list macros Thread-Index: Ad2B+jC9A4LLaNQfSqWgNwF8cQybdwAPOhig References: <20260917172116.660120-1-stephen@networkplumber.org> <20261202011153.3255223-1-stephen@networkplumber.org> <20261202011153.3255223-3-stephen@networkplumber.org> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Stephen Hemminger" , Cc: "Dmitry Kozlyuk" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 > +#ifndef _SYS_QUEUE_H_ > +#define _SYS_QUEUE_H_ Mixing TAB and space multiple places in this patch. Just use space. > +#include > + > +/* > + * FreeBSD provides __containerof in , 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_com= mon.h#L1083 Don't know if it matters.