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 5887F4407D; Tue, 21 May 2024 01:27:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E21264067D; Tue, 21 May 2024 01:27:42 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2084.outbound.protection.outlook.com [40.107.223.84]) by mails.dpdk.org (Postfix) with ESMTP id 6C90C4021E; Tue, 21 May 2024 01:27:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a9pRqoW6RYZF6O0cEIXoJQ9oGEyBl6pXiN0FWITCuWlvh5GUTL15YnWj86b2x64Qjl2kvED53gDvFrM49A5zTZsv0C3nSb60EkvXYWEUtmk8Smz/UKyJEyH8aZ37eaU4JB5nD7YpLkCNpff8+A1bX37tTdOklAxZ2PYyWZidBjVFbr9MUyJi+CZoe7EGV6dhV3/injC/gX/1JesdBSyqECZjou/l0RRSiXLc3JE13DoJ75IaOzG+FPo2DbAYie7UY0qshRmJVHVx6YU80qto+0jfT/S4R0oALK3iMJD1zPupRQKZVVwLPehPQpjoNHTzmP2KEdZH0gt719KfU7RKLA== 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=97vAa7UQJCq8pLlERysKQaL7mA/xFn30r3IPR3foMJ8=; b=NPHnTB3u6Z7tWHyEaaN0w5iB+8OGZSJ4FuKsCze9/Gyau1hOhpo8uimShSa9L0DRq+rKwrboK09PoKtKlynUjscVzP6l2Kve9+Ze6gfhOE8zuovIyh/wWdmCgplQfbDGPBwEZHYGKKPIkuxgmM1aax2pR1+4dyhjg/3gvT/jTxpJeXXOjn62PHxAyooJKkgluH30tvmJBZ52zk+ya06Pi/qVelXKQdC8vf2vExa2uxVzlhcmIS7IprkTbH6AIPzqkMnvf6e6WxlEGJ1hlig9pKvJoShAseUQ2tK3YWQfq48cfiz+5xrxODsB5ZA0xtcLqWEb6/cmEHAHM8LRc5GZVw== 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=97vAa7UQJCq8pLlERysKQaL7mA/xFn30r3IPR3foMJ8=; b=LG5T+zbVGhxyO/0oTh6NG1jqGKYSofxkWMmUdCqzoaZU7zvbCpCFBB4FCf19Nt7eCgwC+VfQ5H50cbxmvE1xMxhr7RV3ojVnSXLhkfFjn4W+Wz9HmRC/2Ue+sRek9jX+V1Qp+Ue6ynHNW4R3hRi9DYepm5EoTqGoMUwrfEde5pc= 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 CY8PR12MB7586.namprd12.prod.outlook.com (2603:10b6:930:99::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Mon, 20 May 2024 23:27:38 +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.7587.035; Mon, 20 May 2024 23:27:38 +0000 Message-ID: <62e9a714-be81-45e8-bb82-b732ea83b543@amd.com> Date: Tue, 21 May 2024 00:27:34 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/4] net/af_xdp: fix stats reset To: Ciara Loftus , dev@dpdk.org Cc: stable@dpdk.org, Stephen Hemminger , Maryam Tahhan References: <20240514084155.50673-1-ciara.loftus@intel.com> <20240514084155.50673-4-ciara.loftus@intel.com> 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+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJkdyEEBQkE3meNAAoJE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ZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240514084155.50673-4-ciara.loftus@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZPR01CA0192.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::15) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|CY8PR12MB7586:EE_ X-MS-Office365-Filtering-Correlation-Id: 7a5e0ec4-ee70-4f40-259d-08dc79246fcf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RlZ6Q2kyTW0yNHN2MlV0dE1Oc2VMd1VDY1M2VkMzOUhpSkZ5MksyQ21oMmd0?= =?utf-8?B?Z2RJc1d1dnYxM2hLZG93YUVNemtuTXlVZGx0TjBXRElVRXhmekZCdEowaWFv?= =?utf-8?B?dDhybDdNQlo5S0luSlpxMmFKOXJMek5GbUJXSGtHQmpid3ZLaXA2NThJalVJ?= =?utf-8?B?M0dzTmhPalF2UnloU3R5d3NXODF3VFFtVHQ0WWs5RU1hNC9KWUt2RXZTR2h2?= =?utf-8?B?bjNZNk96RHN2SEFScmNveGpURVZOOXBSQVZCS2dhMmVhUXJSc0lHd2loV016?= =?utf-8?B?S3VraGYvUlNkTkpncndEWkpUN3Njd2l5aHU2a3VJNWJBQVlORkhPSDg3UTFn?= =?utf-8?B?dHRPNXpoYUNwOVVnTWJ5WnFCM3RGSXBtS2VaUWNSZHhPd0M4R3puYlBCazUv?= =?utf-8?B?RHBmTW0xdlJrVXE0MEtteFFQZnV5TXJFeFNzdHA1bi9aT29PUk1BL0JBYm1l?= =?utf-8?B?bnNpMWx5OEpXZys0dW9vSEhsYk0xM2xteUtQQk1yK3pRL244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3b0JSVzZIL0xHVW81WDFadzFhRHMy?= =?utf-8?B?U2VFNzdvb3BoT3NaZUxTZzQxZERkcTFsd0FiZDhkUk1xekltT3lXbzYweVJj?= =?utf-8?B?WnB5NnB3dGNVaFdrVDJFbTRKRnNKUEdLSGU2ZWRVMmVCd1BoTHQ2aXRrVjg5?= =?utf-8?B?UTFsK29OU0NRVVFqVzhab0RoNFNGY2xSZHBjQ2RaYldiWXZXSUdaMVNaNmVk?= =?utf-8?B?QlFyVFZhUlZjaGtoUjU3TjA0YTRqSklSalhvRnk4RWg3aE1Sc1VJbjZpMDlM?= =?utf-8?B?NXFJVExzZzZKNXFManFVTkJiTzY5bDlXR3prZ01SWk52dFpWL1BzUE5BPT0=?= 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)(376005)(1800799015)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?R1d1VGtJLzVlOGZmdU03d1YyMkM2Z2pFU2dkQitmMEIxOE51NGgrZHpLYjRD?= =?utf-8?B?MFVCVnBFY05VWlFrYWNqREdVNnhNUC9sN296a3hWeGtGV3g3UGpjZ0syZFh4?= =?utf-8?B?UVp5eEtJZURvbEo5aFBYV2NocjVIa2RzelptWlpMc2t0WHBHc1Bxb2xpbzNR?= =?utf-8?B?VVh1bklVMk00dDhXam53alQ4dTVhbk92bDljR1N6RjhHeGVRbnAvWWFaN0hj?= =?utf-8?B?QUlHN01hZjdtZEg4dFZDVmx3bXFEN3dWdkN6dGZnNGFlZ3AyVXVlRXhaaW9U?= =?utf-8?B?bCs4RnhsS3hHRW0rZmFFVXh2V2xBdU1BdXpYMk4yNjdvNW5SNlppN2tveXVk?= =?utf-8?B?aE5tc25RYWVzRnRuRWx4eHhMZ1pnOWN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: 7a5e0ec4-ee70-4f40-259d-08dc79246fcf X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2024 23:27:38.3623 (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: 2Or5pXzKxrRun1mqjiROS3Crepakjuof2kijBnM7SDxeMYQcn668WhxDfC+9Dbnw X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7586 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/14/2024 9:41 AM, Ciara Loftus wrote: > The imissed statistic was not properly reset because it was > read directly from the kernel statistics. To fix this, take note > of the kernel statistic when the stats are reset and deduct this > value from the kernel statistic read during statistics get. > > Bugzilla ID: 1430 > Fixes: f1debd77efaf ("net/af_xdp: introduce AF_XDP PMD") > cc: stable@dpdk.org > > Reported-by: Stephen Hemminger > Signed-off-by: Ciara Loftus > Acked-by: Maryam Tahhan > --- > v2: > * Removed whitespace in rx_stats struct > * Fixed typo in commit message > > drivers/net/af_xdp/rte_eth_af_xdp.c | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c > index 9bcf971ae5..193e3576bc 100644 > --- a/drivers/net/af_xdp/rte_eth_af_xdp.c > +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c > @@ -124,6 +124,7 @@ struct rx_stats { > uint64_t rx_pkts; > uint64_t rx_bytes; > uint64_t rx_dropped; > + uint64_t imissed_offset; > }; > > struct pkt_rx_queue { > @@ -884,7 +885,8 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) > AF_XDP_LOG(ERR, "getsockopt() failed for XDP_STATISTICS.\n"); > return -1; > } > - stats->imissed += xdp_stats.rx_dropped; > + stats->imissed += > + (xdp_stats.rx_dropped - internals->rx_queues[i].stats.imissed_offset); > why not use 'rxq', like "rxq->stats.imissed_offset"? I can update while merging if you are OK.