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 17327427E0; Mon, 20 Mar 2023 11:25:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0730840A7F; Mon, 20 Mar 2023 11:25:00 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2078.outbound.protection.outlook.com [40.107.22.78]) by mails.dpdk.org (Postfix) with ESMTP id 923DB406BC for ; Mon, 20 Mar 2023 11:24:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UNONZVZGXnkGOIa2qrjBqmncoPl7qyaK68Om6yqpBOg=; b=Z6GfPHUEi6kITMsK3wCPqxaHnOepK0sBS49MQ7ozvpb0Pe3R9NmjtAfbFpFZW59Muf9cuI4aDeU6Ubv7ZwBbXYqoOhgfTrx2Z0won0/yEcDxSSALY75f/E58algNROCeygLJIjrv3QymfA0r9DgFZ1HoCHbpEI83efj64ZzbVxY= Received: from AS9PR06CA0462.eurprd06.prod.outlook.com (2603:10a6:20b:49a::19) by AM9PR08MB6098.eurprd08.prod.outlook.com (2603:10a6:20b:2d9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 10:24:57 +0000 Received: from AM7EUR03FT052.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:49a:cafe::4b) by AS9PR06CA0462.outlook.office365.com (2603:10a6:20b:49a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Mon, 20 Mar 2023 10:24:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT052.mail.protection.outlook.com (100.127.140.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.11 via Frontend Transport; Mon, 20 Mar 2023 10:24:56 +0000 Received: ("Tessian outbound cfb430c87a1e:v135"); Mon, 20 Mar 2023 10:24:56 +0000 X-CR-MTA-TID: 64aa7808 Received: from 69beb3bea5e6.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5BC3A5F4-0AB4-4427-8C5A-FAAA2113A6E8.1; Mon, 20 Mar 2023 10:24:48 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 69beb3bea5e6.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 20 Mar 2023 10:24:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bUIJBcGBTOHCnD36bS4w+t0y4aSaE8jFLs8qq/8z4UsQasXdX0lzyHqZLNp71GtPgR9kNv9VlmuuelE+760PXwQxT6/Yvoue8NI5tqP/xutvnsx8Wo6MZyc++EisjmN+alESE2Zsyqbv9SuSstdjZv+XBORuQ63R/6Z/WSbIzM/xxVEV4sYEROTv1CNNpjac77fqMwjyC8zXCktB/n4IZh/gaTTN0g8HJtVqibG2ugXJ/y7ZNNhCA/3AjKCZUwU2hiAb0CNTk4osIdFK/yrvA3c+PCOhl5IhdmSi/97DYaX0ZPVOmLo+Sh+g+Vzr2RZqcrloB3H4Ium81hutOVTTAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UNONZVZGXnkGOIa2qrjBqmncoPl7qyaK68Om6yqpBOg=; b=bjh6iSzFzS8vAezirPxrwoyJGV43UjJ1VR45v5ipZzgoE7AIcVNoc9oukX6HAO/Y6Z9NrJDE6BIS+UJ2Ee6b8r5RQ9qn40H9Lo8MAanv8BwY6sdoN4PjHhv7ot6B/DMdMvCN3zpbFX241g66wo0dtUR4BwDquAygwDkCuH34ASIEEDj/uvRsOgnV6+qvJATqD7dU2P2i1gnWQ/PRxXb0sy3mcGFr5WUQ38w/0KuA1BIAq6zVWvMbJUxLjij7WV2lNc3FTLJMtxEjTIxjRtHTTHmgFWQu4dAJhvvcd3/ii6jmzDARFFlX4kYzmWUz+tBvP0282JU475ZPbfxVjWvblg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UNONZVZGXnkGOIa2qrjBqmncoPl7qyaK68Om6yqpBOg=; b=Z6GfPHUEi6kITMsK3wCPqxaHnOepK0sBS49MQ7ozvpb0Pe3R9NmjtAfbFpFZW59Muf9cuI4aDeU6Ubv7ZwBbXYqoOhgfTrx2Z0won0/yEcDxSSALY75f/E58algNROCeygLJIjrv3QymfA0r9DgFZ1HoCHbpEI83efj64ZzbVxY= Received: from AS8PR08MB7080.eurprd08.prod.outlook.com (2603:10a6:20b:401::19) by DB9PR08MB8357.eurprd08.prod.outlook.com (2603:10a6:10:3db::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 10:24:43 +0000 Received: from AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::3e2c:a99c:db5b:601f]) by AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::3e2c:a99c:db5b:601f%6]) with mapi id 15.20.6178.037; Mon, 20 Mar 2023 10:24:43 +0000 From: Ruifeng Wang To: Tyler Retzlaff , "dev@dpdk.org" CC: Honnappa Nagarahalli , "thomas@monjalon.net" , nd Subject: RE: [PATCH v2 00/16] replace __atomic operations returning new value Thread-Topic: [PATCH v2 00/16] replace __atomic operations returning new value Thread-Index: AQHZV4NUEvDyQuwlH0Kx7R8niKJHs68DfR+g Date: Mon, 20 Mar 2023 10:24:43 +0000 Message-ID: References: <1678486530-20688-1-git-send-email-roretzla@linux.microsoft.com> <1678914945-10638-1-git-send-email-roretzla@linux.microsoft.com> In-Reply-To: <1678914945-10638-1-git-send-email-roretzla@linux.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 76057497A2BB5F43BB8B359052B36F72.0 x-checkrecipientchecked: true Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: AS8PR08MB7080:EE_|DB9PR08MB8357:EE_|AM7EUR03FT052:EE_|AM9PR08MB6098:EE_ X-MS-Office365-Filtering-Correlation-Id: f5d5c4dc-096b-45a3-371a-08db292d5a64 x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 7wCxzCskjR1bgjrYUEXriymfmcQ8kt17lAMwuZtckiyDvuMFyHtrEWwCJPKVHpug9to1hPX4zJi7EvuzWi7ifatN5SuD5uSvvcXNI3j4YiHL1nN9Ty0fd/1NZ/2EjylN6Ltt+iwaPlPDbiHBLtfaDDL2eBgl4FZjvpSkiE4jxRJL/ez3FwXxZa3923pbddIdZZwnL8TBmHDKo215e7IbChKUjOj/zWPvRHNlzUTedWS4AgA/pNFFKj9oAyXYN5evoESm2YdPNvtapOXS8CnbxgFPg7+rVdNXqjMNKOgSByOz4sTncnAhSDdjvYihIAYekt9QcuaEwt6eN1+VdSK1SMuf5zdwmof17qE/M/ApJ7rH51PkRGSkVadMEZ7EDEa/BnxBKZcGTh0Ua9voPGiQDPh+Olrvgott0qeLfFiy1XtuLvru8mbfcHVn1ZvdQi5PBvD2bHeCTcNhGpHdKvuFDeB8KUYz62NlPBaW7vay//n1KI9275VGn9/GbEryqyRYmisWb+TKLw/yr3N1iXWSMxs0W8kDRZ11OGeAD4F4RcEMIRkq4fWjZ4xe8kY3APRmy7VL9l9GwTOgs0p0K3vI/sv0ACjH5IS5KE7yQKfODjWIPIF7fueW1BhK1ZaIXLwT/sUka1ABmRKmCuNm3MAO/SdU3R569oXirwxMb51YbDKinmYiaHyvk7Qc1zcNxBRbh0NoS+DMpnYkrdg6I4fGpQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB7080.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(396003)(39860400002)(366004)(376002)(136003)(346002)(451199018)(38100700002)(8676002)(86362001)(33656002)(38070700005)(122000001)(66446008)(4326008)(5660300002)(52536014)(2906002)(64756008)(66556008)(66476007)(66946007)(76116006)(8936002)(41300700001)(186003)(83380400001)(54906003)(55016003)(478600001)(71200400001)(316002)(110136005)(53546011)(26005)(9686003)(6506007)(7696005); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8357 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e2e79116-91b4-425e-24a5-08db292d525d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hODKN93tP6k7rYHtCeYytMUPEI5qVyf8roNzzwS4iiJsbEqWsvoPAcrh+UKlOV8AjJ9c4zqrTQwItMiT8YR2w8QDxc/za+39punHAhupkRMo1IoTuBV4LOLf1Mgk+yJLALaXpeM121OWCmsFOQbQPZSOQ0zgQOgCWOVtmII65fcKETG7VVQbujeElp3UTn2JJnjoflEpMUh7I+n+9376/AE909MsHXCB+vlm2CIDxEH+U79VuR2c1pmKrfkCtD8cb4PdXXyvVgrdEThL3N0DuWlNe7L8ajCPebPk9vpsu+wQV6ICCO4vJ7NzInejupncMrIrpQfuJAYobnK8CFhZkc7GrNf69Z1yntCK6MFsd56y1F3PJz+09FaATp//IqcJgrxMkrh6OuKPWBGKsoTgxYN1+UgRq9U6sh1TZUksb5n4o2iU2X5swSHxkxxHUhpsqZr5aI5DjzMHE2U+3hh40HboAP8PTVmeQV228RMJSDKp/1weWET1ewlyOMY7ImstgPytjMgUASNTg8bbKrP7P7TV9geoHCaAE8uajET15xB3h6jg6MoGsNdBFLYA25WAqXyxQq6CRyIHheFz2tDqhYP564J+yJvC9Jq31Tc3w+noRcHjyQaTR+ZPjbZ45Sv4nhBsFz1lMY/A07yLIxSwSMEhBUpeaxaNSbzYNL7RvOk4fZfqDAe5VzC0FNKCErkMhna/X2cgnVZjtR68tmg8mQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(396003)(346002)(376002)(136003)(451199018)(46966006)(36840700001)(40470700004)(7696005)(186003)(47076005)(4326008)(478600001)(83380400001)(336012)(316002)(110136005)(70206006)(8676002)(70586007)(9686003)(26005)(6506007)(53546011)(54906003)(36860700001)(41300700001)(52536014)(5660300002)(8936002)(82740400003)(81166007)(40460700003)(2906002)(356005)(82310400005)(55016003)(86362001)(40480700001)(33656002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2023 10:24:56.9216 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f5d5c4dc-096b-45a3-371a-08db292d5a64 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6098 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 > -----Original Message----- > From: Tyler Retzlaff > Sent: Thursday, March 16, 2023 5:15 AM > To: dev@dpdk.org > Cc: Honnappa Nagarahalli ; Ruifeng Wang > ; thomas@monjalon.net; Tyler Retzlaff > Subject: [PATCH v2 00/16] replace __atomic operations returning new value >=20 > This series replaces uses of __atomic_{add,and,or,sub,xor}_fetch with > __atomic_fetch_{add,and,or,sub,xor} intrinsics where the new value is use= d. >=20 > This series is being separated from the other similar series in an effort= to reduce the > chance of mistakes being spotted in review since the usages in this case = consume the > returned / new value. >=20 > v2: > * remove unnecessary casts of signed to unsigned arguments when > using generic __atomic builtins. > * remove inappropriate cast of signed negative value on addend. >=20 > Tyler Retzlaff (16): > app/test: use previous value atomic fetch operations > common/cnxk: use previous value atomic fetch operations > common/mlx5: use previous value atomic fetch operations > drivers/event: use previous value atomic fetch operations > net/af_xdp: use previous value atomic fetch operations > net/cnxk: use previous value atomic fetch operations > net/cxgbe: use previous value atomic fetch operations > net/iavf: use previous value atomic fetch operations > net/mlx5: use previous value atomic fetch operations > net/octeontx: use previous value atomic fetch operations > raw/ifpga: use previous value atomic fetch operations > bbdev: use previous value atomic fetch operations > eal: use previous value atomic fetch operations > ipsec: use previous value atomic fetch operations > mbuf: use previous value atomic fetch operations > rcu: use previous value atomic fetch operations >=20 > app/test/test_ring_perf.c | 2 +- > drivers/common/cnxk/roc_ae.c | 2 +- > drivers/common/cnxk/roc_ae_fpm_tables.c | 2 +- > drivers/common/cnxk/roc_npa.c | 2 +- > drivers/common/mlx5/linux/mlx5_nl.c | 2 +- > drivers/common/mlx5/mlx5_common_mr.c | 8 ++++---- > drivers/common/mlx5/mlx5_common_utils.c | 8 ++++---- > drivers/event/cnxk/cnxk_tim_worker.h | 2 +- > drivers/event/dsw/dsw_event.c | 4 ++-- > drivers/event/octeontx/timvf_worker.h | 2 +- > drivers/net/af_xdp/rte_eth_af_xdp.c | 4 ++-- > drivers/net/cnxk/cn10k_tx.h | 4 ++-- > drivers/net/cxgbe/clip_tbl.c | 2 +- > drivers/net/cxgbe/mps_tcam.c | 2 +- > drivers/net/iavf/iavf_vchnl.c | 8 ++++---- > drivers/net/mlx5/linux/mlx5_verbs.c | 2 +- > drivers/net/mlx5/mlx5.c | 4 ++-- > drivers/net/mlx5/mlx5_flow.c | 8 ++++---- > drivers/net/mlx5/mlx5_flow_dv.c | 12 ++++++------ > drivers/net/mlx5/mlx5_flow_hw.c | 14 +++++++------- > drivers/net/mlx5/mlx5_hws_cnt.c | 4 ++-- > drivers/net/mlx5/mlx5_rxq.c | 6 +++--- > drivers/net/mlx5/mlx5_txq.c | 2 +- > drivers/net/octeontx/octeontx_ethdev.c | 2 +- > drivers/raw/ifpga/ifpga_rawdev.c | 2 +- > lib/bbdev/rte_bbdev.c | 4 ++-- > lib/eal/include/generic/rte_rwlock.h | 8 ++++---- > lib/eal/ppc/include/rte_atomic.h | 16 ++++++++-------- > lib/ipsec/ipsec_sqn.h | 2 +- > lib/mbuf/rte_mbuf.h | 12 ++++++------ > lib/rcu/rte_rcu_qsbr.h | 2 +- > 31 files changed, 77 insertions(+), 77 deletions(-) >=20 > -- > 1.8.3.1 Series-reviewed-by: Ruifeng Wang