From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 742DD41DAF; Thu, 2 Mar 2023 01:48:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 919C6427E9; Thu, 2 Mar 2023 01:48:06 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 9E91840DFB for ; Thu, 2 Mar 2023 01:48:02 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id DB192209FE06; Wed, 1 Mar 2023 16:48:01 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com DB192209FE06 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1677718081; bh=ZrQD3wsJ+jj0RIatXr+iM9J66EjAKeGWDqWDIuuuI60=; h=From:To:Cc:Subject:Date:From; b=Y5XAYKKaM562Qaw/3suzNYr+xPqybpJAHxt9m6RioFPVxFIrbV/f6QE32MYHm7MYF x2YStSx5R3xEnL2s2+pc1vr4TazHwcck457esKZE7z9hYcYwlmT5HcezBuGQoh0cGo HhQN+GZgWAiiL8sXtdOKTD7YMBGhkkiHKZ8XwCU4= From: Tyler Retzlaff To: dev@dpdk.org Cc: Honnappa.Nagarahalli@arm.com, thomas@monjalon.net, Tyler Retzlaff Subject: [PATCH 00/17] use __atomic operations returning previous value Date: Wed, 1 Mar 2023 16:47:31 -0800 Message-Id: <1677718068-2412-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This series replaces uses of __atomic_{add,and,or,sub,xor}_fetch with __atomic_fetch_{add,and,or,sub,xor} intrinsics. The latter omits generation of code that is only needed if the returned value is actually used. Additionally, this change simplifies adapting dpdk to standard atomics planned for 23.07 since __atomic_fetch_xxx can be trivially replaced with atomic_fetch_xxx whereas __atomic_xxx_fetch has no standard equivalent. Tyler Retzlaff (17): vhost: use previous value atomic fetch operations telemetry: use previous value atomic fetch operations stack: use previous value atomic fetch operations eal: use previous value atomic fetch operations distributor: use previous value atomic fetch operations bbdev: use previous value atomic fetch operations examples/vhost: use previous value atomic fetch operations net/virtio: use previous value atomic fetch operations net/octeontx: use previous value atomic fetch operations net/mlx5: use previous value atomic fetch operations net/iavf: use previous value atomic fetch operations net/cxgbe: use previous value atomic fetch operations drivers/event: use previous value atomic fetch operations dma/skeleton: use previous value atomic fetch operations drivers/common: use previous value atomic fetch operations app/test: use previous value atomic fetch operations test-eventdev: use previous value atomic fetch operations app/test-eventdev/test_order_common.h | 2 +- app/test/test_lcores.c | 2 +- app/test/test_service_cores.c | 4 ++-- drivers/common/cnxk/roc_nix_inl_dev.c | 2 +- drivers/common/mlx5/mlx5_common_mr.c | 2 +- drivers/common/mlx5/mlx5_common_utils.c | 10 +++++----- drivers/common/mlx5/mlx5_malloc.c | 16 ++++++++-------- drivers/dma/skeleton/skeleton_dmadev.c | 2 +- drivers/event/cnxk/cnxk_eventdev_selftest.c | 12 ++++++------ drivers/event/cnxk/cnxk_tim_worker.h | 6 +++--- drivers/event/dsw/dsw_event.c | 6 +++--- drivers/event/octeontx/timvf_worker.h | 6 +++--- drivers/net/cxgbe/clip_tbl.c | 2 +- drivers/net/cxgbe/cxgbe_main.c | 12 ++++++------ drivers/net/cxgbe/l2t.c | 4 ++-- drivers/net/cxgbe/mps_tcam.c | 2 +- drivers/net/cxgbe/smt.c | 4 ++-- drivers/net/iavf/iavf_vchnl.c | 6 +++--- drivers/net/mlx5/linux/mlx5_verbs.c | 2 +- drivers/net/mlx5/mlx5_flow.c | 6 +++--- drivers/net/mlx5/mlx5_flow_dv.c | 4 ++-- drivers/net/mlx5/mlx5_flow_flex.c | 6 +++--- drivers/net/mlx5/mlx5_flow_hw.c | 10 +++++----- drivers/net/mlx5/mlx5_flow_meter.c | 20 ++++++++++---------- drivers/net/mlx5/mlx5_rx.h | 2 +- drivers/net/octeontx/octeontx_ethdev.c | 2 +- drivers/net/virtio/virtio_user/virtio_user_dev.c | 2 +- examples/vhost/main.c | 12 ++++++------ examples/vhost/virtio_net.c | 4 ++-- lib/bbdev/rte_bbdev.c | 2 +- lib/distributor/rte_distributor.c | 2 +- lib/eal/common/eal_common_trace.c | 8 ++++---- lib/eal/common/rte_service.c | 8 ++++---- lib/eal/ppc/include/rte_atomic.h | 16 ++++++++-------- lib/stack/rte_stack_lf_c11.h | 2 +- lib/telemetry/telemetry.c | 6 +++--- lib/vhost/virtio_net.c | 6 +++--- 37 files changed, 110 insertions(+), 110 deletions(-) -- 1.8.3.1