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 DA95B41D3B; Wed, 22 Feb 2023 10:41:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CBF2342D81; Wed, 22 Feb 2023 10:41:22 +0100 (CET) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2058.outbound.protection.outlook.com [40.107.8.58]) by mails.dpdk.org (Postfix) with ESMTP id 5B69C42D32; Wed, 22 Feb 2023 10:41:22 +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=wabmAKi5iN/b3TDA4iVntL+x1f64OEKZimQzX4ZcLMc=; b=iFqR9PFkw2VQ1SCbBikBSHS+6w5hvO+zpLUXmItD10n0vZj8gwkcaCmaHB4SYiNqPcXf9QRjF8FcDkGb3jWdpkS3tT4BKHcJyNFeekEYzDJUK6TyvB+sa2W1cWB2TftD/V1jnPn6tJU9pitKVnx006dQkc2K82Qn1X8jJpJRmW8= Received: from DB6PR1001CA0004.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:b7::14) by AS8PR08MB9195.eurprd08.prod.outlook.com (2603:10a6:20b:57f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Wed, 22 Feb 2023 09:41:15 +0000 Received: from DBAEUR03FT029.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b7:cafe::30) by DB6PR1001CA0004.outlook.office365.com (2603:10a6:4:b7::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.19 via Frontend Transport; Wed, 22 Feb 2023 09:41:15 +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 DBAEUR03FT029.mail.protection.outlook.com (100.127.142.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.19 via Frontend Transport; Wed, 22 Feb 2023 09:41:15 +0000 Received: ("Tessian outbound 8038f0863a52:v132"); Wed, 22 Feb 2023 09:41:15 +0000 X-CR-MTA-TID: 64aa7808 Received: from c777958cc253.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 8E217327-EEBF-4A38-BFB3-CC0D840BA514.1; Wed, 22 Feb 2023 09:41:10 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c777958cc253.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 22 Feb 2023 09:41:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PY18qsrBgmKUJ50fG9x/wJd4nBvHPQOAZKrWIHj6cgTqWG6ushwe3EMajKWXrwvNBQC5vEkpbXJxYBxomeOhBcxyNQUifWYqD3I1pnlOaSkhaBnDviSxOJnMRGgiFXJpMqXMqPwnFzALKvhR8MhHLV4/4RSsX3BriOHK8kTZ6ZvFdAEmhkdeWjNkbUoRFSN5ml+GC8Mcpk5lP8+FFEHAsh+uQ8sAyPrTWLbMjGZK0vWY8imHA9J7obT8yH9BNUZytxyeKvZIqzJWgx5YmvEc1XVxqnOP/gYk0wsPtwGuO7DnF7yAZnLUPacN7RFlyGKlCVlF2jNnXhaUl8f7QQEZ6w== 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=wabmAKi5iN/b3TDA4iVntL+x1f64OEKZimQzX4ZcLMc=; b=Kh07APsA39+tDwOC5XsiElBsUkDCUXcbpktCMcrmgMeA40pZ/kSj2O+WbgwaRQsI/4FFrtzG8bQc5XfQ410AAzmDSsYk5RyuwF7dRaLUbIMkfJiBh0LiipkXl6pj1yCsOpr1d0/aOpmiIya7E0aBgPg+KxYGSVNFhSg847Ehh6vXJySmUnt19Ylc5JWiaei3UMI6AyUsibZ7WPqaTvPHRESZmQ4a3cLNTkRzq+NrgplpbP0vkOtDQgIS9ZFCMIoUOMLEWAmQR8SC1Tom1aaL0CJibkDKiBRJ8Nj4hEJIrW9QmYDrD0NAUt6g5QENzYbT9y3oIM30ZE2cbRiCFmXH/Q== 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=wabmAKi5iN/b3TDA4iVntL+x1f64OEKZimQzX4ZcLMc=; b=iFqR9PFkw2VQ1SCbBikBSHS+6w5hvO+zpLUXmItD10n0vZj8gwkcaCmaHB4SYiNqPcXf9QRjF8FcDkGb3jWdpkS3tT4BKHcJyNFeekEYzDJUK6TyvB+sa2W1cWB2TftD/V1jnPn6tJU9pitKVnx006dQkc2K82Qn1X8jJpJRmW8= Received: from AS8PR08MB7080.eurprd08.prod.outlook.com (2603:10a6:20b:401::19) by AS8PR08MB9267.eurprd08.prod.outlook.com (2603:10a6:20b:5a3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.19; Wed, 22 Feb 2023 09:41:01 +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.6134.018; Wed, 22 Feb 2023 09:41:01 +0000 From: Ruifeng Wang To: fengchengwen , Stephen Hemminger CC: Ashok Kaladi , "jerinj@marvell.com" , "thomas@monjalon.net" , Honnappa Nagarahalli , "dev@dpdk.org" , "s.v.naga.harish.k@intel.com" , "erik.g.carrillo@intel.com" , "abhinandan.gujjar@intel.com" , "stable@dpdk.org" , nd , nd Subject: RE: [PATCH 2/2] ethdev: fix race condition in fast-path ops setup Thread-Topic: [PATCH 2/2] ethdev: fix race condition in fast-path ops setup Thread-Index: AQHZRPHSKAOhGJtmykGYr/7I8+jOva7XZ1EAgAF+GTCAALzPgIAAh9OAgACMBZA= Date: Wed, 22 Feb 2023 09:41:01 +0000 Message-ID: References: <20230220060839.1267349-1-ashok.k.kaladi@intel.com> <20230220060839.1267349-2-ashok.k.kaladi@intel.com> <4786db4b-63dc-5329-522d-77eb58d4cff4@huawei.com> <20230221090053.14d653bf@hermes.local> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 9A098F4AC03D45449BE303BCA02F87C6.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_|AS8PR08MB9267:EE_|DBAEUR03FT029:EE_|AS8PR08MB9195:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e2e3c5d-ef74-40ad-bb8d-08db14b8f11c 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: aVBZUhCSiKHwhX/yqxu80lXwGWx2lK3X0NTrzaH/8Ho8X6Vi8Ksqx2A4CbPUDQElM9Zb/1sR8Kn2QytsZmHxZOjjAq1mSgt/dAfjik+EWd7MNK4tmPfu413lQoJ/UMXeBKt7yTmKHqo1WJu3Mkcomoocl/U4PS3n40Klue/VHeV3ZhN52qKvJQdoS59rKBcvjTm5ZvMq4ve9LfViLxdZzrgdNJpMqmMAfFqf4DlMLRUPjrCYvYUEwIJAqzTuxCwBpXw9dBa/TI47sHPNWm8E76wupazzluCV9oRHFm3gnLXHhjtkKfeqmYcX5uj2Rs3tfSsG2Kax6GaOqvE8m5ZnoE2Qz52xOpysKEHMTtE8vdOnE4QkHUnzhomkfTOCT0sVPTQPJU8+K5TvS7P53GWANEyykxBr2ZdHOljiy5ALkstJETrNUsiKfMaoGXb7QgZSRUq+tDm0+z6C8dxg4hyJyH2vHvbukKdQOsEzr52CCrtz75O1yGAnm6TBpytoBt6GBNEmVU/sDGYpC5+KH27S1rbF1tzAEt1ILdwat2iMXOjbIXFQfJSRDm3ROD/XebzhoFinNd9AGae8NLPDJEv0/gkusXWiL54ufcb3nxOyLMkdChqm4/aTLksOe9ukqNCY/WPzjMbKku32egAYZaZAwZviTnp2kYtU7o3GAoN+ahQx9B673CKTaxTMje2tAJde 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)(376002)(396003)(346002)(366004)(136003)(39860400002)(451199018)(83380400001)(84970400001)(86362001)(38100700002)(5660300002)(8936002)(7416002)(122000001)(2906002)(110136005)(38070700005)(33656002)(55016003)(53546011)(478600001)(8676002)(6506007)(186003)(41300700001)(71200400001)(54906003)(66946007)(52536014)(66556008)(76116006)(7696005)(64756008)(66476007)(66446008)(316002)(26005)(4326008)(9686003); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9267 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: DBAEUR03FT029.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 4a84ed4d-7b0d-4554-dc5c-08db14b8e891 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: etobgwDE84TA+SrK7aBNxTJ5QtNa7Z04C8XXZksOYutGr3Z6hRot5PP/RuruylXuGnqqehNLq2RxL4mky7aVDGKutHqVpoI6MtR9PhYD5qEY+86f3Umr5Ja84u3IIVr2jk6MAEmrkS53WSGauHJh/jY4HNclEkfkn25fsidaZLT7VrjP4mKEHshJiGUD4wmRpQDQxxkhWjPDOJxzGsmtVuFGQ31wnr+XHt8Vgnrd0aWOFll66uHsqqyx8OiD/7rdP3gzPa6PIqINMq5Nw3PeeKJL/4eM2/hx+UA/QNgRAtEYinPSCGneQicivRuwIsCQU4+7nOp83kJAYebX2e6uXYWrOPfygdhimKPUPDYJG8enFXnmErg1UV1fhIPCwjO1bHephtsQJ4R15+ohUUEqgJuFmWmIGciPzBITx3QqOJwHNvN2cGlSv4tHmONJ13vHRPh8qN/UBelL7xpIC1YmyQlaZlicHMyMherP+Y5wLNjiI3EAIeL7fhl0X3KbGGdaqgvAa/8QAZfFqvjHlthOFzHA9kkaJQiXZ6etzsBhF2395+w6QmsBIS4IecD0c9flHDvV5BUNRwiukGXjClLzckdtcRiw2jDCVnGnUzRtyhL+2TvTBjh5Kwa5kWTWbHyKI0BDju8Q2xVJ2qN5AM9XwV9V1bX7lAC66DqJkBAXfiOtzuag78h8CO9uPUwgn3ev 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)(396003)(376002)(39860400002)(136003)(346002)(451199018)(46966006)(40470700004)(36840700001)(83380400001)(82740400003)(81166007)(36860700001)(8936002)(356005)(33656002)(86362001)(2906002)(52536014)(5660300002)(41300700001)(82310400005)(186003)(55016003)(40480700001)(40460700003)(26005)(53546011)(9686003)(6506007)(47076005)(336012)(316002)(4326008)(54906003)(70206006)(7696005)(8676002)(110136005)(450100002)(478600001)(70586007)(84970400001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2023 09:41:15.4630 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3e2e3c5d-ef74-40ad-bb8d-08db14b8f11c 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: DBAEUR03FT029.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9195 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: ,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