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 86950A0548 for ; Thu, 11 Nov 2021 17:07:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F97C41142; Thu, 11 Nov 2021 17:07:45 +0100 (CET) Received: from JPN01-OS2-obe.outbound.protection.outlook.com (mail-eopbgr1410133.outbound.protection.outlook.com [40.107.141.133]) by mails.dpdk.org (Postfix) with ESMTP id 8863F40E03; Thu, 11 Nov 2021 17:07:42 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UweiIcp/r6aDqPgtMI8FqLGWH6MhL/oX+tNyWYbMt4pE5muNSCL7DmOEoemBx28L4Vo8rbuphj51BBlUxvCZWlie86QuwxG+siUG/JHb9mxhrQ0sCucXrmq33e0DAioyJCz1Ufdr5WiRkTFOqijEsLimi2PS7QJshbZtbhAX9YZS/1jkAau4po5H4ohSTBAQCN13J5GU+dXR5Yuw4kUmh22P4Big/kB8xobl4Gyh2qaUvNIXb8SFrvF0C7dgJq7t9sWS1+yEs7CFonuJIKHD15+8ZALnyCSI2qXzpxpcxxQhfZeNDroeogCz92jse2OQwH5xQ6GFwq2z++rUgRKIrQ== 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=ccOT0vWGEbAvBfUAVn9RR400yfWek0qiNxWAQ6/NoMQ=; b=Eq0lyFR5+5devetajCwlQ3UEocI9H9lfocwe2Ev0qG6G3pkYo7Tu7G+y+d+JxFw8plo9XsCFf+izlIDbFO2Bxc7dLiaLi4sgiuAMCc0z8FZCUM14MEh74BPXaxY+JAefyatpGCvH06J/tziDS6R1J8Nst424ipFnFbShakFp/qQnwqf8Fe2aW1XozjVyDO3Jdjz3qo05KWpGqWIpzBuqTKYyKkCCGWwjdRxEc7c8/cmmsnK3aHfYJJHOGB5hzb0DZHyn0rW6B30LNsJ8vfF2BJhee2cHlSBPnP4HBRoN6DIG5UZmOWtgf4qSg/Z8uMpCvqVrFjWpTZFH6vPzAOAtwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=connect.ust.hk; dmarc=pass action=none header.from=connect.ust.hk; dkim=pass header.d=connect.ust.hk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connect.ust.hk; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ccOT0vWGEbAvBfUAVn9RR400yfWek0qiNxWAQ6/NoMQ=; b=eAfpMOBC6LTpfTumBLxdwI7+3Ih8lPFKsgQRB2+ld6jJ3qWSfBosledAwxDE+f9i2yXgXuCns0KwY8prp7GePCsQ+ZEKULXSsWfiytQfHLy/NSVfs6SbzOu3o3eIrhkvA/KiwiHXtk3JBvJPscp6du+3danDW6p4Dz1yT+CsJrs= Received: from TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:b7::8) by TYCP286MB1395.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:c2::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.18; Thu, 11 Nov 2021 16:07:40 +0000 Received: from TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM ([fe80::c0af:a534:cead:3a04]) by TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM ([fe80::c0af:a534:cead:3a04%7]) with mapi id 15.20.4690.021; Thu, 11 Nov 2021 16:07:40 +0000 From: YE Chengfeng To: Slava Ovsiienko , Ferruh Yigit , "dev@dpdk.org" CC: Raslan Darawsheh , Matan Azrad , "stable@dpdk.org" Subject: Re: [PATCH] net/mlx5: remove redundant "set used" Thread-Topic: [PATCH] net/mlx5: remove redundant "set used" Thread-Index: AQHX1tjhBIiFFw1jBUWmmrCXbIuNuKv+BxeAgAA0xYCAAAVvAIAAPBcp Date: Thu, 11 Nov 2021 16:07:39 +0000 Message-ID: References: <20211111084751.26721-1-viacheslavo@nvidia.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=connect.ust.hk; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5d5492d5-0dc7-4f25-3ea2-08d9a52d62de x-ms-traffictypediagnostic: TYCP286MB1395: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: A8PYizttWMYl7Md6uyNXRge8Bajooi2XmnUI7DsOx21pAinIW4OhJEtO6VXnnrQqVcDQEZF3vsm4yX+eRXsHQV3+ocMlnX4pVPsqlZ434zhtJoCx0Qmos/oOeQuRzlukyiF+J9f2rfGA5JYWJohG+qp+QYMdXUixWv4TCok67eFc+A5czjUdUBZT1e2nYpi2qdAONMEE2QmUPHDvBkeZPD7CuuuKae3jyKN5co2Er+72l2cQkMQ9h9tblDQYLJUNc5vyylWdd1cEjx7huQDOu4w5fGRqcJmLRqrYETULF+MtvSiEnVCL2Q7M6kIq25W7szSnA7kJzuLOhIvbBLO1BQQE4QFwRAbRgfCDTwi+0PWThwAlEhTOaubSOnu6Jo7wsKWXVjPU7xRq9AoWF/M0ipiOp+huwz6eMKoB//JsigYaG3jSwFZFAww+8tyno9Ka319eh9M7+HDLP2/DY4/+drVnE3CteBC7xjtl9NDXdWFAUfhjxZdqn3ONKr2ykn+o/0dwB9QVroEcQBKdyovY93V4iu+S7UMZGC4A3FKJAoW/yEg8o4K6GdH5tbbXdR56DKOOsydBX7l+Ot27XBbcPI1vo1xCw5GLeG4yQjG0CtjntA0B1652Ei+Om2w6piGufSv7feS9+abYLSBSL2vAdaYI5Krq758RUahFitbVH1YnvQLININfkBjdMkiTvXzJmchwUxDnirBq3rL60983+DNyYCxzQc4hcx8UntxbYX8WEheskt5/JI4TGmdNTNS2ftcDGwIfYDFNUqO46CIjYw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(366004)(122000001)(166002)(66946007)(52536014)(71200400001)(26005)(316002)(33656002)(786003)(66446008)(9686003)(45080400002)(38070700005)(6506007)(91956017)(86362001)(53546011)(38100700002)(7696005)(76116006)(966005)(2906002)(186003)(5660300002)(8676002)(8936002)(54906003)(83380400001)(110136005)(66476007)(4326008)(55016002)(508600001)(64756008)(66556008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?gb2312?B?NSs1ZmtrWkN1amtzdHdyejJPenhYelg0Nm1aN3gwVVppd0g0aUNXNlJSbW0v?= =?gb2312?B?OXYrdkFCN1ZVQ2U0ZnVMb1M3ZVIzeGZVMnBySkRSWUdJSlNYTzlaRHFTd1Q2?= =?gb2312?B?Zk9KTkE1LzFjU01wMUpTeWd3TVBjUloycXhiYTBVY1JndGVSczA2SlZaS3Vt?= =?gb2312?B?b2djOE5XeU95UG1qU3g1SkhlQUdFUDZJN2RFTTdhbVVSbUl6WjNJcHI5VHhY?= =?gb2312?B?Ukx3SVRPNjRyQXZ2RUpJQ0xUanJEdUl1bUhKVU9ueW5rTm9RWW9PbUVjb1ZP?= =?gb2312?B?ODZ3N2s0aWcvVGtGMUhsWXhMT0VPa284ZzUrVkhxdzM0Z3RpQU51Nll4cVRN?= =?gb2312?B?MGJ0NGprZGtI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OV3pW?= =?gb2312?Q?IZkqGW1fu1ibDU3NzxcX+1PcW3QJ7myGxt+eOsz23o3r?= Content-Type: multipart/alternative; boundary="_000_TYCP286MB1188356A3DC08BFCEABE0A828A949TYCP286MB1188JPNP_" MIME-Version: 1.0 X-OriginatorOrg: connect.ust.hk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 5d5492d5-0dc7-4f25-3ea2-08d9a52d62de X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2021 16:07:39.6944 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6c1d4152-39d0-44ca-88d9-b8d6ddca0708 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fYvPbwUTXGiqopRIyA00vmvDo5P3Tname9kOeZic4MZ8yUasJR0t/hrqJsu0hF/k+fqi6MZnnX5ie/pDbReqpA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCP286MB1395 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org --_000_TYCP286MB1188356A3DC08BFCEABE0A828A949TYCP286MB1188JPNP_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 Tm8gcHJvYmxlbSwgSSB3aWxsIHNlbmQgdGhlIG5ldyBwYXRjaC4NCg0KQnV0IHdoYXQgYWJvdXQg dGhlIGNvbW1pdCBtZXNzYWdlIGFuZCB0aXRsZSwgc2hvdWxkIEkgdXNlIHRoZSBwcmV2aW91cyBv bmU/DQoNCm5ldC9tbHg1OiBmaXggbXV0ZXggdW5sb2NrIGluIHR4cHAgY2xlYW51cA0KDQoNCrvx yKEgT3V0bG9vayBmb3Ig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tICAgICAgICAgIE1MWDVfQVNTRVJUKCFyZXQpOw0KPiA+PiAtICAgICAgICAg IFJURV9TRVRfVVNFRChyZXQpOw0KPiA+PiArICAgICAgICAgIGNsYWltX3plcm8ocHRocmVhZF9t dXRleF91bmxvY2soJnNoLT50eHBwLm11dGV4KSk7DQo+ID4+ICAgICAgICAgICAgIHJldHVybjsN Cj4gPj4gICAgIH0NCj4gPj4gICAgIC8qIE5vIHJlZmVyZW5jZXMgYW55IG1vcmUsIGRvIGFjdHVh bCBkZXN0cm95LiAqLw0KPiA+PiAgICAgbWx4NV90eHBwX2Rlc3Ryb3koc2gpOw0KPiA+PiAtICBy ZXQgPSBwdGhyZWFkX211dGV4X3VubG9jaygmc2gtPnR4cHAubXV0ZXgpOw0KPiA+PiAtICBNTFg1 X0FTU0VSVCghcmV0KTsNCj4gPj4gLSAgUlRFX1NFVF9VU0VEKHJldCk7DQo+ID4+ICsgIGNsYWlt X3plcm8ocHRocmVhZF9tdXRleF91bmxvY2soJnNoLT50eHBwLm11dGV4KSk7DQo+ID4+ICAgfQ0K PiA+Pg0KPiA+PiAgIC8qDQo+ID4+IC0tDQo+ID4+IDIuMTguMQ0KPiA+DQoNCg== --_000_TYCP286MB1188356A3DC08BFCEABE0A828A949TYCP286MB1188JPNP_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
No problem, I will send the new patch. 

But what about the commit message and title, should I use the previous one?
net/mlx5: fix mutex unlock in=
 txpp cleanup


=BB=F1=C8=A1 Outlook for iOS

=B7=A2=BC=FE=C8=CB: Slava O= vsiienko <viacheslavo@nvidia.com>
=B7=A2=CB=CD=CA=B1=BC=E4: Thursday, November 11, 2021 8:27:30 PM
=CA=D5=BC=FE=C8=CB: Ferruh Yigit <ferruh.yigit@intel.com>; dev= @dpdk.org <dev@dpdk.org>
=B3=AD=CB=CD: Raslan Darawsheh <rasland@nvidia.com>; Matan Azr= ad <matan@nvidia.com>; stable@dpdk.org <stable@dpdk.org>; YE Ch= engfeng <cyeaa@connect.ust.hk>
=D6=F7=CC=E2: RE: [PATCH] net/mlx5: remove redundant "set used&= quot;
 
Hi, Ferruh

> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit@intel.com>
> Sent: Thursday, November 11, 2021 14:08
> To: Slava Ovsiienko <viacheslavo@nvidia.com>; dev@dpdk.org
> Cc: Raslan Darawsheh <rasland@nvidia.com>; Matan Azrad
> <matan@nvidia.com>; stable@dpdk.org; Chengfeng Ye
> <cyeaa@connect.ust.hk>
> Subject: Re: [PATCH] net/mlx5: remove redundant "set used" >
> On 11/11/2021 8:59 AM, Slava Ovsiienko wrote:
> > Hi, Ferruh
> >
> > I've also inspected the mlx5 PMD code for RTE_SET_USED() for the<= br> > > similar issues related to the MLX5_ASSERT().
> >
> > The patch
> > https://apc01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatches.= dpdk.org%2Fproject%2Fdpdk%2Fpatch%2F20211111084751.26721-1-&amp;data=3D= 04%7C01%7Ccyeaa%40connect.ust.hk%7C87553a5cd43647db708008d9a50ea321%7C6c1d4= 15239d044ca88d9b8d6ddca0708%7C1%7C0%7C637722304566828185%7CUnknown%7CTWFpbG= Zsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C= 1000&amp;sdata=3DwoTMghsE0S7ckoo0AI01YbdWrJeLtbMCu4GeE8JDiUc%3D&amp= ;reserved=3D0
> viac
> > heslavo@nvidia.com/
> > should refine the few found ones.
> >
> > I do not mind about squashing with "net/mlx5: fix mutex unlo= ck in txpp
> cleanup"
> > After getting this code in Upstream will care about the version f= or LTS.
> >
>
> It will cause additional complexity for the LTS, since a small part of= the below
> fix will be originated from Chengfeng's change. To help LTS, what do y= ou think
> - First get your fix on top of current task
> - Have a new version from Chengfeng on top of latest head, with 'claim= _zero'
> usage?
Would be nice, I have no any objections.
Chengfeng, could you please, squash (or write by yourself) my proposed upda= tes
and send the next version of your patch with "claim_zero()"?

> So only your update need to be merged to LTS releases.
Yes, agree, it is even better than my proposal.

With best regards,
Slava

> >
> >> -----Original Message-----
> >> From: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
> >> Sent: Thursday, November 11, 2021 10:48
> >> To: dev@dpdk.org
> >> Cc: ferruh.yigit@intel.com; Raslan Darawsheh <rasland@nvid= ia.com>;
> >> Matan Azrad <matan@nvidia.com>; stable@dpdk.org
> >> Subject: [PATCH] net/mlx5: remove redundant "set used&qu= ot;
> >>
> >> The patch just refines the code and replaces the pairs of
> >> MLX5_ASSERT() and
> >> RTE_SET_USED() with equivalent claim_zero().
> >>
> >> Cc: stable@dpdk.org
> >>
> >> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.co= m>
> >> ---
> >>   drivers/net/mlx5/mlx5_txpp.c | 30 ++++++++++-----= ---------------
> >>   1 file changed, 10 insertions(+), 20 deletions(-)=
> >>
> >> diff --git a/drivers/net/mlx5/mlx5_txpp.c
> >> b/drivers/net/mlx5/mlx5_txpp.c index 73626f0e8f..af77e91e4c 1= 00644
> >> --- a/drivers/net/mlx5/mlx5_txpp.c
> >> +++ b/drivers/net/mlx5/mlx5_txpp.c
> >> @@ -890,7 +890,6 @@ mlx5_txpp_start(struct rte_eth_dev *dev)<= br> > >>     struct mlx5_priv *priv =3D dev->da= ta->dev_private;
> >>     struct mlx5_dev_ctx_shared *sh =3D pr= iv->sh;
> >>     int err =3D 0;
> >> -  int ret;
> >>
> >>     if (!priv->config.tx_pp) {
> >>          &n= bsp;  /* Packet pacing is not requested for the device. */ @@ -
> >> 903,14 +902,14 @@ mlx5_txpp_start(struct rte_eth_dev *dev) > >>          &n= bsp;  return 0;
> >>     }
> >>     if (priv->config.tx_pp > 0) { > >> -          ret = =3D rte_mbuf_dynflag_lookup
> >> -
> >>     (RTE_MBUF_DYNFLAG_TX_TIMESTAMP_NAME, = NULL);
> >> -          if (r= et < 0)
> >> +          err = =3D rte_mbuf_dynflag_lookup
> >> +          =         (RTE_MBUF_DYNFLAG_TX_TIMESTAMP_N= AME,
> >> NULL);
> >> +          /* No= flag registered means no service needed. */
> >> +          if (e= rr < 0)
> >>          &n= bsp;          return 0;
> >> +          err = =3D 0;
> >>     }
> >> -  ret =3D pthread_mutex_lock(&sh->txpp.mutex); > >> -  MLX5_ASSERT(!ret);
> >> -  RTE_SET_USED(ret);
> >> +  claim_zero(pthread_mutex_lock(&sh->txpp.mutex)= );
> >>     if (sh->txpp.refcnt) {
> >>          &n= bsp;  priv->txpp_en =3D 1;
> >>          &n= bsp;  ++sh->txpp.refcnt;
> >> @@ -924,9 +923,7 @@ mlx5_txpp_start(struct rte_eth_dev *dev)<= br> > >>          &n= bsp;          rte_errno =3D -e= rr;
> >>          &n= bsp;  }
> >>     }
> >> -  ret =3D pthread_mutex_unlock(&sh->txpp.mutex);=
> >> -  MLX5_ASSERT(!ret);
> >> -  RTE_SET_USED(ret);
> >> +  claim_zero(pthread_mutex_unlock(&sh->txpp.mute= x));
> >>     return err;
> >>   }
> >>
> >> @@ -944,28 +941,21 @@ mlx5_txpp_stop(struct rte_eth_dev *dev)=   {
> >>     struct mlx5_priv *priv =3D dev->da= ta->dev_private;
> >>     struct mlx5_dev_ctx_shared *sh =3D pr= iv->sh;
> >> -  int ret;
> >>
> >>     if (!priv->txpp_en) {
> >>          &n= bsp;  /* Packet pacing is already disabled for the device. */
> >>          &n= bsp;  return;
> >>     }
> >>     priv->txpp_en =3D 0;
> >> -  ret =3D pthread_mutex_lock(&sh->txpp.mutex); > >> -  MLX5_ASSERT(!ret);
> >> -  RTE_SET_USED(ret);
> >> +  claim_zero(pthread_mutex_lock(&sh->txpp.mutex)= );
> >>     MLX5_ASSERT(sh->txpp.refcnt);
> >>     if (!sh->txpp.refcnt || --sh->t= xpp.refcnt) {
> >> -          ret = =3D pthread_mutex_unlock(&sh->txpp.mutex);
> >> -          MLX5_= ASSERT(!ret);
> >> -          RTE_S= ET_USED(ret);
> >> +          claim= _zero(pthread_mutex_unlock(&sh->txpp.mutex));
> >>          &n= bsp;  return;
> >>     }
> >>     /* No references any more, do actual = destroy. */
> >>     mlx5_txpp_destroy(sh);
> >> -  ret =3D pthread_mutex_unlock(&sh->txpp.mutex);=
> >> -  MLX5_ASSERT(!ret);
> >> -  RTE_SET_USED(ret);
> >> +  claim_zero(pthread_mutex_unlock(&sh->txpp.mute= x));
> >>   }
> >>
> >>   /*
> >> --
> >> 2.18.1
> >

--_000_TYCP286MB1188356A3DC08BFCEABE0A828A949TYCP286MB1188JPNP_--