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 A238C43F05; Thu, 25 Apr 2024 16:04:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 881EB43853; Thu, 25 Apr 2024 16:04:36 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2087.outbound.protection.outlook.com [40.107.244.87]) by mails.dpdk.org (Postfix) with ESMTP id 15C0C40284 for ; Thu, 25 Apr 2024 16:04:35 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VSBDL32pxZeZrHpX4iuR59oPzh3AhqDp0QEgHtG/G0+aIRbRE1yyfao7+hug+Hwi98kJlya4dDMA+MdUicQVES7rbnCtgRfdt0W4sMGObGthosDjl5W9GkU+fv2R2d2C6+9fYqX8jo5QtPy332m2LPHPXXNA+n5jVZfP9iPDnzjzDKmsVLl915ah+CQqLWRnQyypb9zu2NWgKolja/AKvUTwlPAC9FxEzgnU+K5XoAhGPzFXrciVRK6OIfOSPZgkX7TqLFeFUyj/rfQeJyRUpKb1DfYfMyxKoX723NpiY1T80+wJQbmcYhBAfoZpbPYyTSZnpYmux2tPedR6vvxzpw== 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=KyGa6mb3n7mEcPWuA7oC5356iS8/UvrB9PhDwPDJaR8=; b=eEW2QiCxciSE58BfdC3Ldxklltosj5iTUe5Px/mbb1Fm9GEybHi8sdZ4vb07YA3gEPbaTsuA8Y8BnONKv/pxZfs24AAT1PENKJGFE7rvQrYuFBLIbN6qaB+roJYW0dqHRuqijWPr15JaHho3hDsfYf59d7JGNn+eyVCx5R+VKdE4wq+do8dLDYRT70QAaVvEGwjE85w52X3G7WGkFkLFwALWAndWs/ruKUlgCsLoexBTZFFRAX+MAMERGuoNu5YFYQ+aH217dB4UlP2f6VbxQJjDpYjz71UgWyqMvp6RwV2js/L0/kEJNSjzWvgaDvNdUwzaizCbucABcp5rns/qWw== 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=KyGa6mb3n7mEcPWuA7oC5356iS8/UvrB9PhDwPDJaR8=; b=HnVJOJ8i2A0F1AAknhxReawMvT59ej5MHrsnJD4DZAeZurlDx/xFEDGtb1idOPgwjpRIqp8Kk7BxV2C4l2z0SR89Ru7I9N1ApixbaI0JBZN6l8CmSvFudmqpkr6B2lcMWeM90znHS4kh6+2NKA9K+5i/4qHbeR2uKbjhbaeIh0I= 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 IA0PR12MB8208.namprd12.prod.outlook.com (2603:10b6:208:409::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.24; Thu, 25 Apr 2024 14:04:31 +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.7472.044; Thu, 25 Apr 2024 14:04:31 +0000 Message-ID: <2d07603e-e024-45a4-bfb1-c350b08ccdfb@amd.com> Date: Thu, 25 Apr 2024 15:04:27 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] net/af_packet: cache align Rx/Tx structs To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= , Stephen Hemminger Cc: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= , "John W . Linville" , dev@dpdk.org, Tyler Retzlaff , Honnappa Nagarahalli , =?UTF-8?Q?Morten_Br=C3=B8rup?= References: <20240423090813.94110-1-mattias.ronnblom@ericsson.com> <6f7aabcb-2c12-4cfe-ae9d-73b42bfd4977@amd.com> <63dbb564-61f6-4d9f-9c13-4a21f5e97dc9@lysator.liu.se> <5d2a0887-527a-4948-943c-65f1dfda9328@amd.com> <3b2cf48e-2293-4226-b6cd-5f4dd3969f99@lysator.liu.se> <0ff40e60-926b-44eb-8af5-2e16aff1c336@amd.com> <20240424121330.7547e290@hermes.local> <2371b1a8-bdc5-4184-8491-54e2e3a64211@lysator.liu.se> <20240424165534.2ad8ae0a@hermes.local> <4c0f1625-4387-4870-a60a-dc423885811e@lysator.liu.se> 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/YyKauSeOZCfCB5gI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D/uh/MgmL62bY/Cw6M2SxiVxLRsav9TNkF6ZaNQCgn GqifliCEMvEuLZRBOZSYH2A/PfwjYW0Ss0Gyfywmb2IA990gcQsXxuCLG7pAbWaeYazoYYEQ NYmWatZNMAs68ERI2zvrVxdJ/fBWAllIEd0uQ4P05GtAHPdTIDQYp545+TPV7oyF0LfXcsQs SFVZE6igdvkjfYmh+QOrHGZvpWXLTmffVf/AQ81wspzbfxJ7sYM4P8Mg5kKOsaoUdyA/2qVe cMh1CLUHXF1GlofpGbe1lj4KUJVse5g3qwV7i9VrseA8c4VIZewdIjkzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <4c0f1625-4387-4870-a60a-dc423885811e@lysator.liu.se> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0250.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a7::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_|IA0PR12MB8208:EE_ X-MS-Office365-Filtering-Correlation-Id: b338552e-29bb-4182-5878-08dc6530a096 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RWlvRldwcDhRRWJxbkNxVG1sTEZIWWtKczF6SUhYeS9EWkdaZXp4UnFjRlE4?= =?utf-8?B?amgzL1hQZWlMZ05QanBDeW9RKy9XaUNDY3NOSzdXVWgxR0hFVjM0NGNjVW1s?= =?utf-8?B?b2lPNFJkbDd1czVsV3gzZ0hhdDBtMjIraExsdGphSVYrUGpNTzEwakNIUWJn?= =?utf-8?B?OUFZSWRLNnR5dExUT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?B?V0t4UTd2ZVVHeTJTZlAzL2ZwaTZacEJMOVBtTlRiVHlWdWZXRURQUEdtK2hy?= =?utf-8?B?VDgxbG4vOW5mdjV2TGlUMmdLWUh2dnozWHR1bWdLUzBvanM3dENpbERIeXVX?= =?utf-8?B?OFBBZmROYnk5UmRUN1ZvM0pva3psTkFJbG5JZjFqMXUvMjZNZDdZK2ZwQjgy?= =?utf-8?B?TjFMRFBTUWI0YlZ6aFdoay94ZjQvS21Ha3ZBSEtmcGJYbkREQXN6TWlpdnhX?= =?utf-8?B?NWN2cUQrbmljTTY0Qk0weFZuSlpxMW1zQW8xcDRPNlJ6L2VMNFNzMW1vdUlX?= =?utf-8?B?UGJoZVNLU2ppZmNDVml3WkQ4TnVZZU5NOUZpSllxS2tOTTFnNm9PSE5LbTBo?= =?utf-8?B?UUI4ZG9zb1Q5dkVEbWMzMC9RRHNJd21ZVzJaRzVmZExjWGNrcHo3bVVvMkRF?= =?utf-8?B?VHZXd3dzS2pveUhDTFpFY2hpZnZRRGsralBtaFRLaEVoZFJoWFFDTkttUTBp?= =?utf-8?B?dCt4d09LbGdoVUNyM2NBNVo2b21ibHRUMW9DU3hXS1dWWTJCU1RLdHRXUnF2?= =?utf-8?B?WThDSGRrWkhVNmw1aTF0UG91QW83RUhyb0taYjNkK25wSXhGd3UwUkJ0VVQ4?= =?utf-8?B?RDRUclhBOUw3NVVpOFByNmJzdmFZU2Fha3FGMEZvSFFnTzhuMFBFazRRPT0=?= 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)(1800799015)(376005)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q29hMXRuc1NaSUs3NktFTmthQ0o5ME1CWU1Yamt6V1NPZkpRMWQrdFp3W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RaVkxRVcwNzgzZVJhZE5EbzBZS004T2h3dnU3dEt1SkVDdkw0?= =?utf-8?B?RzRhYXBndUlYS3dkTDArS01SUkxHbFFsUUlLekVka0RjR1ZmK3lpUUJOR2kz?= =?utf-8?B?dTVFTlpibzRnRUttQ3pkdUVUbzl4OUZkSisrWTJOS1BQd24wdUQ4T1JnQ2Nk?= =?utf-8?B?b1h5UlgzcFNtREpOYW1EeENPQXp6MVhDWVJYT09IbG5yZEh3U3JxQ2N6NkZH?= =?utf-8?B?YVJUKzB4bEUzZ0d6M1lEeldWOEVGa2phSjVmcmZreXMzQzRFdlBmV2F2N0I5?= =?utf-8?Q?tDj3QwVifWtIVoWm6NAfJNmQ8?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b338552e-29bb-4182-5878-08dc6530a096 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2024 14:04:30.9571 (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: RXcHyk0aHHb5jamu6agsiAzjE5QWIrM7owYxVs8+A8W/YG51jqd131vxPBp11JHA X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8208 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 4/25/2024 10:26 AM, Mattias Rönnblom wrote: > On 2024-04-25 01:55, Stephen Hemminger wrote: >> On Thu, 25 Apr 2024 00:27:36 +0200 >> Mattias Rönnblom wrote: >> >>> On 2024-04-24 21:13, Stephen Hemminger wrote: >>>> On Wed, 24 Apr 2024 18:50:50 +0100 >>>> Ferruh Yigit wrote: >>>>    >>>>>> I don't know how slow af_packet is, but if you care about >>>>>> performance, >>>>>> you don't want to use atomic add for statistics. >>>>>>       >>>>> >>>>> There are a few soft drivers already using atomics adds for >>>>> updating stats. >>>>> If we document expectations from 'rte_eth_stats_reset()', we can >>>>> update >>>>> those usages. >>>> >>>> Using atomic add is lots of extra overhead. The statistics are not >>>> guaranteed >>>> to be perfect.  If nothing else, the bytes and packets can be skewed. >>>>    >>> >>> The sad thing here is that in case the counters are reset within the >>> load-modify-store cycle of the lcore counter update, the reset may end >>> up being a nop. So, it's not like you missed a packet or two, or suffer >>> some transient inconsistency, but you completed and permanently ignored >>> the reset request. >> >> That is one of the many reasons the Linux kernel intentionally did not >> implement a reset statistics operation. > > DPDK should deprecate statistics reset, it seems to me. > > The current API is broken anyway, if you care about correctness. A reset > function must return the current state of the counters, at the point > them being reset. Otherwise, a higher layer may miss counter updates. > > The af_packet PMD should return -ENOTSUP on reset (which is allowed by > the API). > > Maintaining an offset-since-last-reset for counters is a control plane > thing, and shouldn't be in PMDs. (If MT-safe reset for SW-managed > counters are to be expected from the PMDs, we should have some helper > API to facilitate its efficient & correct-enough implementation.) > statistics reset works for HW devices, instead of removing statics reset I am for documenting API that it may be not reliable, I can send a patch for it. With above change, we can be more relax on stats update specially for soft drivers, and can convert atomic_add stats updates to "atomic load + add + atomic store". Does this plan make sense?