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 97F9443F6B; Thu, 2 May 2024 20:20:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19A50402B2; Thu, 2 May 2024 20:20:44 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2072.outbound.protection.outlook.com [40.107.236.72]) by mails.dpdk.org (Postfix) with ESMTP id 457F240299 for ; Thu, 2 May 2024 20:20:42 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cTm+rIRArBa+KF8fBMaALg6CUg91bgSA7NmTJvlr/IXRbU4ENNYow1fUatoYMP33xWDhf6PfJI1fmJvR5Xp9NgLeVouoac5jr73BjSuNxlQnVETTuwEDeXZK2t8/wzJon5DwYaV0iVsQC/HKpsZ5F/8gLQ7hu7w9bNNFFZLALKJ+SB9SfItslsed9f2PR6MllbCshAIBt4ldVnWzLrNqSmCmhsHfFPR0Spzmx+Ew9cXcGhRjZ0gZJ13cFaMKY0d3GPdUKUWlKbKLXxRO2Id8G95Gihh+IjfP5kX7GV3Awr5v0MkYfaOuzRsxC3RVoBaJWVCPobNj9rqusolqCuKzoA== 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=8+JUZ8HAtcu48AN+oMqM4bMrZuOoZkD3d2/oS426AiI=; b=Mmj24xEXzsByZjoMrEDIapV6QwbfplWiL88c+ytn6GUBCled0gQUhPZJI4cSH1dxDrIiyfo64yFy6AxjfYmfHgPa+r5b2XGePznCBrq8eO7J+5N0tT63FEaUrUXu1P7ySW/C/C4AYCHwwiW5VmnuDZH7DhCQun/bSFGhvS7x7y5MJzM42OH+XCKwXHCWbGhUUKGpBSVi4+KFemZCD3gc3YtoUykaHh4HD74p+1q97l/LVQbR0he4Q9KG5QIKlR1AP0hIPBHicyyq4wqoXueNkqM35K54mW+9ph7KOVkRZelSEZ3lH5uKi5Fa5XYAuvCgBg1OfXG4lyGdSQavTb60tQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8+JUZ8HAtcu48AN+oMqM4bMrZuOoZkD3d2/oS426AiI=; b=qfSbG0II2zdTuuj873a0j2Tg3oLkVTbtN42W5xHkJtK7iWuI1AO/DTioYL5xcVMfWVfoMhWU1BKskO+sWJfkyrRcMFxPAd0ENFKmlADfpJo9lSqflBpK8zACEgsAShpq3cRmnO5y3IaYfNUdL28C8Mb6B7rVzzIqyJ92Z578zHE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by SA0PR12MB7003.namprd12.prod.outlook.com (2603:10b6:806:2c0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.29; Thu, 2 May 2024 18:20:40 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3%7]) with mapi id 15.20.7544.029; Thu, 2 May 2024 18:20:39 +0000 Message-ID: Date: Thu, 2 May 2024 19:20:35 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [RFC v2] net/af_packet: make stats reset reliable To: Stephen Hemminger Cc: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= , "John W. Linville" , Thomas Monjalon , dev@dpdk.org, =?UTF-8?Q?Mattias_R=C3=B6nnblom?= , =?UTF-8?Q?Morten_Br=C3=B8rup?= References: <20240425174617.2126159-1-ferruh.yigit@amd.com> <20240426143848.2280689-1-ferruh.yigit@amd.com> <108e0c40-33e7-4eed-83de-eaedee454480@lysator.liu.se> <7e5dd3cd-ea50-4aea-a350-d88f46854172@amd.com> <422dd5a6-4ed6-4ae5-b613-b22a7cf6f77d@amd.com> <20240502085910.27cf9e94@hermes.local> Content-Language: en-US From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QN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fYmh+QOrHGZvpWXLTmffVf/AQ81wspzbfxJ7sYM4P8Mg5kKOsaoUdyA/2qVe cMh1CLUHXF1GlofpGbe1lj4KUJVse5g3qwV7i9VrseA8c4VIZewdIjkzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240502085910.27cf9e94@hermes.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0304.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:196::21) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SA0PR12MB7003:EE_ X-MS-Office365-Filtering-Correlation-Id: f7976396-6313-4c5d-d69a-08dc6ad49221 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?TDk5WHdWMkZiSjkxSHEyd2p0Uk04RThZUEpSamhBSisxTzJONllVeVk4Qjcr?= =?utf-8?B?SG9ZMFJqZElkTXpVSUVjTHRjZ1FMVjRCSlZVSjNOVXJHbldjOTRxanFtYmlX?= =?utf-8?B?MUNPUlBlNlJVa2ptZENRa2hxNnFNbWJ4Y21CTHc5WjQyQXgrUVNTVG90N0ln?= =?utf-8?B?QlBCdVZmTytoZzNUQVh1emVvRTZWYkFFRHdDRVRxejB3T1A5M3RsQ3BSYlZY?= =?utf-8?B?bm5yUzFMeGIvWVloOEg5YUxDQWlqMFJoUXFvOWhrZDh4QmZKMVpQbjdheFRv?= =?utf-8?B?SzNxN2dGbWV5U2FHampzYkY3a1QrYnhpTzFVOW9sVTBrN1YrMXFTa29mazdE?= =?utf-8?B?N2JzNjlCOCthd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STkNKUU1P?= =?utf-8?B?Y3dUYzVTb1k3NFlaZ05RWm56ZW5YWDY2bHg2SXFBQ3NkbkowUHN2VSt5c1Jk?= =?utf-8?B?UjlJdURINDZiY3ppK25UTURBQ1J0eEVUWUpuTmpDVjVHQ2pjSEE1NS9xNjY2?= =?utf-8?B?QjhmbDV6UlhHd1pubU9jVmVCMXZHYkhyejdOZmVoM3pFN3Flb0IxNk5NRVBD?= =?utf-8?B?YUJzejdKTjVOL1UyZGtUdkxnaWZJbnpGcis5QWozSXYvKzhqSitxTUxTNjhD?= =?utf-8?B?NzNQbndndFFTTFRGZzl5VjlmSW4wL29adnBwVDAvQldTVzhGQmtHbE4xRjRs?= =?utf-8?B?M0pHVGk0R3ZiejlDMUlqZnEzamxEVGdGcVJGdGFUbXRDcGhySWNrR0RhNUo2?= =?utf-8?B?bTZRNnlFUTBxbDZRUnJuSzVzNjY0MDVWRGdlNzIvQm15ajI1cnNVM1ZQTHF0?= =?utf-8?B?UjJNVGUrd2NwZldBUHdhNjczKzRrL3Vlc2dtait1QXo5NGlnNUlKQjdnPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(1800799015)(376005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L1NTN2E1UVpSRW55SUFnUGJZR3lwZkNMWWc0bVJES3BuenAraFdXTGY3V2Nn?= =?utf-8?B?QXorYkdycDdYQ2FlckhSMy9jaCttRWRpekgvS3lzMnRpTm1EWjVKVWZtVTk1?= =?utf-8?B?b3FlNGtqZGU5Y2RZMUMzZTVhT0VERXQ0M2UvV0luSHF2UTBvS2RpellTUEZV?= =?utf-8?B?SENKN29UazNHVGpHeTVKaEo2YTMrMWlZWlJodGFST2V6TFY1YUVL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i9iY2lwS0dvLzRHU01Ka1FVcHU0cFhhdU8vSUJOWjlmaE84R0hEU0ow?= =?utf-8?B?K285a0pXYmowRGgrWldFVFRyUDA3TU5URDJIQXozRFhYTzFhQkU1Tlo1Yi9Y?= =?utf-8?Q?Vwfb2Z3WT14foXGhSw08bR813?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f7976396-6313-4c5d-d69a-08dc6ad49221 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 18:20:39.8945 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WV2vLhr+q2A8thHFAfhFILXHBBOBo45ReNjaZTvLKSfXtrAQrm0oiiGmgF2PgqSX X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB7003 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 On 5/2/2024 4:59 PM, Stephen Hemminger wrote: > On Thu, 2 May 2024 15:22:35 +0100 > Ferruh Yigit wrote: > >>> >>> It's not going to be completely MT safe, since you can't have two >>> threads calling the reset function in parallel. >>> >> >> This is what I meant with "MT-safe reset", so multiple threads not >> allowed to call stats reset in parallel. >> >> And for multiple concurrent counter-updating threads case, suggestion is >> to stop forwarding. >> >> Above two are the update I added to 'rte_eth_stats_reset()' API, and > > I can't see the point of full MT-safe reset. No other driver does it. > The ethdev control side api's are not MT-safe and making them truly > MT-safe would add additional ref count and locking. > Agree, that is why clarified this in ethdev API: https:/dpdk.org/patch/139681