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 B91CD45ED6; Wed, 18 Dec 2024 07:18:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 44A6A4066E; Wed, 18 Dec 2024 07:18:14 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2098.outbound.protection.outlook.com [40.107.220.98]) by mails.dpdk.org (Postfix) with ESMTP id 15D92402AE for ; Wed, 18 Dec 2024 07:18:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gsMNEzJlqbZ2DhiY4JLkZO5I/OazDtVy0jOR1hQxa/u7u5s59jy8OOYJs11euVABT2kPi4YmR9k9dkFAPiSF+i29AEn9iJ3DECgvGEhtoKa2BpEzlRN8TEClB/IWE5d1W47QndsuL/V/Tb3fziqWbQ0N+WT+3xDePFuJ/72Vi7wJcZKzMvSXUDrBx1+X5uxthD6xF2ZqO8maUetwNzzCGdlZNfmQ/CTPJwjDb/HwAytRC2ZUn3ab5RVhiDy4zi6xp10Crs1XQ59UUV5EWxNqOgOfmUZ3pGkFYgK2E9DBCeMU650mbhileQpco3CBXGwNTzfW8B3088ZB32cN/7z8oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=U2oib5b0+tOVb1dULncaFEiQgu7879pNybEpld0VRHc=; b=ZmTKM9xCBziVz597fiRLg+yKoO2EKThZFjznkJt4yHvd776UVFZe/xZ9Gs0nyBBHAxgHXnd6tQ7ey5xG5Kpt4BJAGybx7Ta74SdJnzKYmooXMiNmsEsmcSyqvFTo7/loX+9Vc+ptsEF1Ft3zIsFW8fG6goaaBcAs26c9zRhNCO6xb0kd2XSVsojLw/f/eD9vmIt5W/wRI1XMWPiqDyh7GApcHh3tKKYzgGwlwCZPWqQ18uqDdXK2cgaLDJS90RtnnxGq4Zs35vKe9j4Rcn76D967xyRrTmxms74EZwGE4a/IJY8B2UEzQ//5A0ecLpFd5k4Y+UOvJtJFHKx5N5ATOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U2oib5b0+tOVb1dULncaFEiQgu7879pNybEpld0VRHc=; b=SILhqOUZxnv99uAXkS3SSOMgqyaH/HzeeOqaX68znlHG3yiobQmyp5C2UCz/It/Gk8hetupeV6MMnmif2vgQII+kaV8klBMiBHN0XKppUUZ9N88lixTphu1LhuU2v/GrGmME/+jIc1V+MD5BlQdHutHkvvfokhCEQYc7o72oEbM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by BY5PR13MB3876.namprd13.prod.outlook.com (2603:10b6:a03:22c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Wed, 18 Dec 2024 06:18:09 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%6]) with mapi id 15.20.8251.008; Wed, 18 Dec 2024 06:18:08 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He , Peng Zhang Subject: [PATCH] net/nfp: unify the queue threshold value Date: Wed, 18 Dec 2024 14:17:45 +0800 Message-ID: <20241218061745.1696899-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.43.5 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR04CA0003.namprd04.prod.outlook.com (2603:10b6:a03:1d0::13) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BY5PR13MB3876:EE_ X-MS-Office365-Filtering-Correlation-Id: 6a268836-aab5-4ae7-5ac7-08dd1f2bbdbb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|366016|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Xuif7vBLLuFrX5j2FhBFhLVSXSXhcJmwYvD+/gSnOpvODADwGcvOtjl/YmKg?= =?us-ascii?Q?uGuTLD7S15KkSlgJkiniTz6YCU3DjHd2GoWc2RfmZSR2XRBd3ctB+Vtocar4?= =?us-ascii?Q?lqel0addCy5EW4hYUfcS7QFQsvdIrR1U21Yp6ClIkklj1n6KxsUDGj95apHO?= =?us-ascii?Q?cv1V+zoXVRoxor/UGK8WXC2Hgt2byMu2KMnpYNAlURgvI2hfPRqQsZqALrop?= =?us-ascii?Q?LOc4+TAWRio1Cp/iBzDixR8xCh6u3szOsR520a7U9NZYHqBD5qAYpXKOpuJH?= =?us-ascii?Q?KQZCkTtzX8sbt1V5VIZJL/6RGv6B0j6JNZ5UacUmOypwvi5g8/lNYIl3HmjT?= =?us-ascii?Q?rKQ59Cfkod5JJkFrooc+EXBgMDOH61JFRRIE8QohPPQ8LgEeJ58sJy/pmvUs?= =?us-ascii?Q?CT/1LEQLtcHYiOkR5cN6+DIw2T5D9vljZlpQ0C/V5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hYlO/yd+2PJXMnLmqtNoK2CGcYQl+fupfIw03ReMnyK?= =?us-ascii?Q?jYN40AdDpnC56czR5EUfl3Y+N22wswKyCci8egdT/0k1NMUZuX7BXjdOW4RJ?= =?us-ascii?Q?5wtzKhuun32i7R7K8X9C2eXi3c0AofeW?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(52116014)(376014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?x8etWIpVWp1XE5mcKvUtpisLDNKc+OMGpmBdxlgpJxDSNClz/f2OP+HlFT6V?= =?us-ascii?Q?tiLqgtCOin32Y0TVhX9kYs9Vs0CfS3yOG5nd4g3bFrGKngnyFfoCs0XyG4/Z?= =?us-ascii?Q?yrG/zFKouTpECso28cJsOjvK5jQ8tBriPi6ZuXtz6f36q9e5jLx/TcGj0IZ+?= =?us-ascii?Q?7/URf6J888jmsGhWXUda9KoiwFwt41IfrREBvOJds2eoweI1/WMbhX7sTYS+?= =?us-ascii?Q?Jr5jInBM5rf+/Q3xr9ETj1LVbC68cO0iqtEiDfRZWpPONO++ltdJBRIRvTkN?= =?us-ascii?Q?EkHNhruvuNARFWLr4UMDIBUROFSmVtSj5IkqlHwVPVdWzKAWd97urD0c2/nj?= =?us-ascii?Q?JOTyTn6XSbMfCYajq3J1S/EWl3iMSQTf15rBNfmO4Q2uNtil66wC/01DT8ei?= =?us-ascii?Q?BmgwQ4T17+C0dgiioXS7ymkNF29u1+NoFJZIiRCjaY1J5eDTxcb4ZPHzrjsM?= =?us-ascii?Q?gRiT05cg3St/MI4PaYvWuSYaJ1uPxxvjY6IgvpzgMzsOODTCE6Xk3ACQqKvY?= =?us-ascii?Q?5HdElvNB1D5D8NKjivt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sW?= =?us-ascii?Q?NHfulaFh4C96/pmta00TbCzIZj4VwLVFkLlq9FawvM49OCB0m97Lv/i9i5QN?= =?us-ascii?Q?oZDnMxZynjrWqpTqmPMqR+06DGXfGe5yX5g0BOQNqkl7D8ASZYr/EDFB0XUM?= =?us-ascii?Q?VrVipEB4Ns3As/9gw80OUd8YneBLPH1dVZ2RH21dYoDs+WbyiaTJGjktyXh/?= =?us-ascii?Q?hw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a268836-aab5-4ae7-5ac7-08dd1f2bbdbb X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 06:18:08.6533 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KbFnfHIeKLSxOY/FUZluXa/qKyoo1G6MuTE31ZFVKynwhyEz2XF7PZlPl8V8x8QKgLdNdzRvFq0T33ykUgvf1DsXzVLdGenNY3o6QWm7zgI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR13MB3876 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 Make sure the Rx queue threshold value query by API 'rte_eth_rx_queue_info_get()' and 'rte_eth_dev_info_get()' unify. Same for the Tx queue threshold value. Signed-off-by: Chaoyong He Reviewed-by: Peng Zhang --- drivers/net/nfp/nfp_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/nfp/nfp_rxtx.c b/drivers/net/nfp/nfp_rxtx.c index 35fb637b21..ad1eb21d2f 100644 --- a/drivers/net/nfp/nfp_rxtx.c +++ b/drivers/net/nfp/nfp_rxtx.c @@ -862,6 +862,7 @@ nfp_net_rx_queue_info_get(struct rte_eth_dev *dev, nfp_net_infos_get(dev, &dev_info); info->conf.offloads = dev_info.rx_offload_capa & dev->data->dev_conf.rxmode.offloads; + info->conf.rx_thresh = dev_info.default_rxconf.rx_thresh; } void @@ -883,6 +884,7 @@ nfp_net_tx_queue_info_get(struct rte_eth_dev *dev, nfp_net_infos_get(dev, &dev_info); info->conf.offloads = dev_info.tx_offload_capa & dev->data->dev_conf.txmode.offloads; + info->conf.tx_thresh = dev_info.default_txconf.tx_thresh; } void -- 2.43.5