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 7ED1841E08; Mon, 13 Mar 2023 07:45:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DD8D406BC; Mon, 13 Mar 2023 07:45:19 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3395D40151 for ; Mon, 13 Mar 2023 07:45:17 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32D6TkKX028699; Sun, 12 Mar 2023 23:45:13 -0700 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2105.outbound.protection.outlook.com [104.47.55.105]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3p8t1t4eeh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 12 Mar 2023 23:45:12 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aImciW2yp9kUNGmRO8ksP1MXg6j73N/QMdKjJkXeNMvkykSQYfDlEeLrJqsUFN/yiP/5VPvLzxP/VllWmONDwNLBXo4RBt8ZAjfMUZXPK6f31zZ1KrIal1R0FYT3ToTq7lfrKaO0Fd5gmQdEgG3dwb9SsSZjR9W5A5Shxe+OPXm/Hc7G8GtfZeeQwDoBVl51rk/0CFN7jIjnvTVTXyyx8/oeLMBeuZoIWQWmAeoAQuTS0RaDBNzpob8Qcz/+NT94NiHIR7Oy+WnH7bm9CtoNMJXccwDY9RuEc/ZP5ADHjxQkaEoaDWdZGJw3KTWlzqdSSjwy3WeYPZewqP1pz1Mozg== 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=fqxUOZ83p9yJOF+8sDAAv02qzbXywmaRSk3YhET3oPI=; b=dZYqzztvssn7/qw25LO8YDG6GlReK8VUSm4Hsyx9O74kR+DGOeClR4e0kN5jmRCnvOUgjUg/rhaU2CmH1sdIoGEubzAbgpdHAG8CrkTyQFFhJJ4Mz3P0tAfvkL0ArcStCL8VkE26Xr5BRqQPIQKRnx6gP5AwbiWzNsEcM7c9T8H9xF8OW6ar1HmYkqSdCldMw9vaeGOxmNrR+GJd2FUbnu1oD+erkvYe7v/4Af0W2q3EzjI4Oi/ds8k24sErIbrfVLqHgiIiFjcoFzwJeDvx1jh5MtvT+yF7/xuHsC0yPYZRamG+081MUYDgAx5w/si0BTKRGSoQ7FYNhzgo5a7ayg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fqxUOZ83p9yJOF+8sDAAv02qzbXywmaRSk3YhET3oPI=; b=tMErlfjhjc3HtqEkFkVFiExkL41W0hZSjlXcso5+39HM1W27ws8Qg+k26BY2dUPujG+quZfzAFm594UbPejiXPmI33FrCx4uqpEKxSMNNmxmQm4D7wAKhrxHK92/diaA81/zPZBpnYa/8+xi5CL457rRSmoygMmP6hU6kFWB35k= Received: from MW2PR18MB2171.namprd18.prod.outlook.com (2603:10b6:907:7::17) by CH3PR18MB5438.namprd18.prod.outlook.com (2603:10b6:610:15a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Mon, 13 Mar 2023 06:45:10 +0000 Received: from MW2PR18MB2171.namprd18.prod.outlook.com ([fe80::4589:3421:529f:c189]) by MW2PR18MB2171.namprd18.prod.outlook.com ([fe80::4589:3421:529f:c189%4]) with mapi id 15.20.6178.024; Mon, 13 Mar 2023 06:45:10 +0000 From: Nithin Kumar Dabilpuram To: Tyler Retzlaff , "dev@dpdk.org" CC: "Honnappa.Nagarahalli@arm.com" , "Ruifeng.Wang@arm.com" , "thomas@monjalon.net" Subject: RE: [EXT] [PATCH 06/16] net/cnxk: use previous value atomic fetch operations Thread-Topic: [EXT] [PATCH 06/16] net/cnxk: use previous value atomic fetch operations Thread-Index: AQHZU53x2cMBmbQ19Ue9f5cIln4eIq74RyJA Date: Mon, 13 Mar 2023 06:45:10 +0000 Message-ID: References: <1678486530-20688-1-git-send-email-roretzla@linux.microsoft.com> <1678486530-20688-7-git-send-email-roretzla@linux.microsoft.com> In-Reply-To: <1678486530-20688-7-git-send-email-roretzla@linux.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-rorf: true x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcbmRhYmlscHVy?= =?us-ascii?Q?YW1cYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZi?= =?us-ascii?Q?ODRiYTI5ZTM1Ylxtc2dzXG1zZy05NzQ0NTYyMy1jMTZhLTExZWQtYWYxYi1i?= =?us-ascii?Q?NDZiZmMzZTQ0YzJcYW1lLXRlc3RcOTc0NDU2MjUtYzE2YS0xMWVkLWFmMWIt?= =?us-ascii?Q?YjQ2YmZjM2U0NGMyYm9keS50eHQiIHN6PSIxODMxIiB0PSIxMzMyMzE2MzUw?= =?us-ascii?Q?NzcwODU2NDYiIGg9IlFNa3JDM3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ascii?Q?QUFBQUNlQUFBQWJRQmhBSElBZGdCbEFHd0FiQUJmQUhBQWNnQnZBR29BWlFC?= =?us-ascii?Q?akFIUUFYd0JqQUc4QVpBQmxBSE1BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFKNEFBQUJ0QUdF?= =?us-ascii?Q?QWNnQjJBR1VBYkFCc0FGOEFkQUJsQUhJQWJRQnBBRzRBZFFCekFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBRUFBQUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg=3D=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW2PR18MB2171:EE_|CH3PR18MB5438:EE_ x-ms-office365-filtering-correlation-id: cfaf59fa-373e-4273-5006-08db238e7d84 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NRH/uKdMFiIAShbqLE4Lm04PbGojN+qqHwNeLijCsukb8MUPrjPr6a4yH9WDDxonU9Qz7Mzs0lwG2B5+mxuesQbSTKtlCVvmtRxclW3Zv4my/ToBrt1a9iQ89gZ0BdUCb0C54wpm0J4wVHdVkyqN5rA/maQLGLXiYAGu4n6RcqogtzuyLFKLrKoasV839bgvtS75QSGLsTjW87y3mUU9FZeLSrq2uYi6WCa49mTw7IQukmsgmQ6YMOk5/GvTcSp47dsiQTiipLiw9yoPKU9YyUY8hUCwH0g0hkC1rg5qvcOprfpNuTD4/8BuuKbnKwZ2AdmobG+vxb4iKuIZs0c8t/iqFBWnoJAAG7tdJ/qShnz17JDtUfEGuM1ojVpUpoNUqM9XDo6F7L98Tw27HYCFjmNFWupmYLsDhQtz9n4fwoNTZ71ZFoGqo6qto0AuO5viNz0vCJPVyfwi90gVRqMH3c7nWGOhnW+83oBvw0CzqcEqMqY3e3Xz3UkDyVf/2Ti/Gu+Z9uGcRh7mSNzzusLXhvVGsxBOjhOLS4L4WDsnZDkgPFBwS+POBIvwIGActfm3hMVxGP29ssjP72XYlfdKYc6gp0n7ydIiPDKBoT44IJQafSkn/ZNrQleMUTFiPds9pC51j77Rj7pZlqaeDzsqqyw+bIn6x5ZjIfBVbUE2YjA8vsLfy2TjHSiB6jxEmYerlxDZeo6/5+aG21pSGdYWWQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR18MB2171.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(366004)(39860400002)(376002)(346002)(451199018)(122000001)(2906002)(83380400001)(5660300002)(66476007)(52536014)(110136005)(55016003)(33656002)(8676002)(64756008)(66556008)(66946007)(76116006)(41300700001)(186003)(8936002)(66446008)(4326008)(38070700005)(86362001)(38100700002)(316002)(54906003)(478600001)(9686003)(7696005)(71200400001)(53546011)(6506007)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?CyOIdyByQUtB2X0WmT2pf0OnpfNwcnqrtzFre1QLIe+suUuPfK/Aiem7H+Th?= =?us-ascii?Q?HoqAmqmLOAHvuOtau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8TVI?= =?us-ascii?Q?m9NOJZ7XC6M6NDfMGz+9oOS8zd7IyVW6tGUIOGpwHpBnbEoAFFFZ2ZtdMf2R?= =?us-ascii?Q?1xJEmrDWnhaSlHeKAeBJ7b9GkhGxUuwNQa4C/vU9XarQAGxpV4jsxG6B21td?= =?us-ascii?Q?tG4HGL01tm5F/H3gR/ijBfxp1TX7llFmXp3jDm9seHIn3re05Qk9GXoKDYn2?= =?us-ascii?Q?fgpf1uk8vI16gDZkfgPAz3fxkLEhn0YH0IVQ85DPUdwjXFWKGRq7aFTG57k6?= =?us-ascii?Q?3BHSe87vZnJFfDWay6JMkmKPyEM4gW914NLAhWW8DG0Tf7I23t6mZJ7ySkiK?= =?us-ascii?Q?lON+cksnXjFxdt29ty1BVqkyyG7mbmj1gj6YVLWm3/SJx/cmJ/RbEyWX6c7g?= =?us-ascii?Q?CWSeRQw9viaZoqUzGE7CIbgVfcy5M55MOpXPchB8ocgTN7vQGyWCtM7QDdFj?= =?us-ascii?Q?R2TY2IxM1Y0neohHORAr3g28aFKucSHUKlz4mYA6UZZkuiXVn4xCJL9y1byx?= =?us-ascii?Q?WAFW6XXrtyMJMT+dkcUVVDKZEvwFneOW3y4F2D9ctSTGz0rhhVd4SpIWbIsw?= =?us-ascii?Q?J83ZKaLCkPTXIa12YdYhDUhtElxyg94zTTDLWyWBgTm5tND0tAWsuAeaTCQx?= =?us-ascii?Q?nQ4ZmSYmGd+3t+XW4OGuI46AhkogEiOQMmToToZz?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW2PR18MB2171.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cfaf59fa-373e-4273-5006-08db238e7d84 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Mar 2023 06:45:10.0739 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GnXGPa0vVpbOXaJ/lij+CFouCtYCdAiLq2mpf1zekelvLfeu+2EuvwMDcVOGqiY2ustdphIq7q+EKrJEj4Cd7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR18MB5438 X-Proofpoint-GUID: tb9phwArkWXWVdhlIAl7IgyQX17KAAsv X-Proofpoint-ORIG-GUID: tb9phwArkWXWVdhlIAl7IgyQX17KAAsv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-12_10,2023-03-10_01,2023-02-09_01 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 Acked-by: Nithin Dabilpuram > -----Original Message----- > From: Tyler Retzlaff > Sent: Saturday, March 11, 2023 3:45 AM > To: dev@dpdk.org > Cc: Honnappa.Nagarahalli@arm.com; Ruifeng.Wang@arm.com; thomas@monjalon.n= et; > Tyler Retzlaff > Subject: [EXT] [PATCH 06/16] net/cnxk: use previous value atomic fetch op= erations >=20 > External Email >=20 > ---------------------------------------------------------------------- > Use __atomic_fetch_{add,and,or,sub,xor} instead of > __atomic_{add,and,or,sub,xor}_fetch adding the necessary code to > allow consumption of the resulting value. >=20 > Signed-off-by: Tyler Retzlaff > --- > drivers/net/cnxk/cn10k_tx.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h > index a72a803..c9ec01c 100644 > --- a/drivers/net/cnxk/cn10k_tx.h > +++ b/drivers/net/cnxk/cn10k_tx.h > @@ -108,7 +108,7 @@ > retry: > while (__atomic_load_n(&txq->fc_cache_pkts, __ATOMIC_RELAXED) < 0) > ; > - cached =3D __atomic_sub_fetch(&txq->fc_cache_pkts, req, __ATOMIC_ACQUIR= E); > + cached =3D __atomic_fetch_sub(&txq->fc_cache_pkts, req, __ATOMIC_ACQUIR= E) - > req; > /* Check if there is enough space, else update and retry. */ > if (cached < 0) { > /* Check if we have space else retry. */ > @@ -302,7 +302,7 @@ >=20 > again: > fc_sw =3D txq->cpt_fc_sw; > - val =3D __atomic_sub_fetch(fc_sw, nb_pkts, __ATOMIC_RELAXED); > + val =3D __atomic_fetch_sub(fc_sw, nb_pkts, __ATOMIC_RELAXED) - nb_pkts; > if (likely(val >=3D 0)) > return; >=20 > -- > 1.8.3.1