Message ID | 1704239102-31044-1-git-send-email-roretzla@linux.microsoft.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 99C5143801; Wed, 3 Jan 2024 00:45:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09F95402EB; Wed, 3 Jan 2024 00:45:07 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E9E90402C7 for <dev@dpdk.org>; Wed, 3 Jan 2024 00:45:03 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 1F41B20ACEE8; Tue, 2 Jan 2024 15:45:03 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1F41B20ACEE8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1704239103; bh=5IwBWsT+j14qFqDge5TkWdEQLHIeO4shstvsAM/nWvg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GUEd26kcdGM99v0fc93z0rlCkHYxFA5UKCz6OK9WlCjKbnwlLy7kEpzKOA4fiOQi6 At4ADXs0f6QSkpvzrqKwMUwxefeOGVWoX6MX5Jmq+6YN7gie9TSTasOjEcdROpZBT/ HA5+2gri3eg5KnERHnyjrS/mDgft+fVvBSKtm0QQ= From: Tyler Retzlaff <roretzla@linux.microsoft.com> To: dev@dpdk.org Cc: Kai Ji <kai.ji@intel.com>, Pablo de Lara <pablo.de.lara.guarch@intel.com>, Tyler Retzlaff <roretzla@linux.microsoft.com> Subject: [PATCH v2 0/3] remove __typeof__ from expansion of per lcore macros Date: Tue, 2 Jan 2024 15:44:59 -0800 Message-Id: <1704239102-31044-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1703006864-27378-1-git-send-email-roretzla@linux.microsoft.com> References: <1703006864-27378-1-git-send-email-roretzla@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
remove __typeof__ from expansion of per lcore macros
|
|
Message
Tyler Retzlaff
Jan. 2, 2024, 11:44 p.m. UTC
The design of the macros requires a type to be provided to the macro. By expanding the type parameter inside of typeof it also inadvertently allows an expression to be used which appears not to have been intended after evaluating the parameter name and existing macro use. Technically this is an API break but only for applications that were using these macros outside of the original design intent. v2: * add additional patch to adjust usage for crypto/ipsec_mb Tyler Retzlaff (3): eal: provide type to per lcore macro crypto/ipsec_mb: provide type to per lcore macro eal: remove typeof from per lcore macros drivers/crypto/ipsec_mb/pmd_aesni_gcm_priv.h | 2 +- lib/eal/common/eal_common_errno.c | 2 +- lib/eal/include/rte_per_lcore.h | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-)
Comments
On Tue, Jan 02, 2024 at 03:44:59PM -0800, Tyler Retzlaff wrote: > The design of the macros requires a type to be provided to the macro. > > By expanding the type parameter inside of typeof it also inadvertently > allows an expression to be used which appears not to have been intended > after evaluating the parameter name and existing macro use. > > Technically this is an API break but only for applications that were > using these macros outside of the original design intent. > > v2: > * add additional patch to adjust usage for crypto/ipsec_mb > Series-acked-by: Bruce Richardson <bruce.richardson@intel.com>