Message ID | 20240605055520.2587034-1-chaoyong.he@corigine.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ACCD04414D; Wed, 5 Jun 2024 07:55:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9BA5C40649; Wed, 5 Jun 2024 07:55:45 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2092.outbound.protection.outlook.com [40.107.237.92]) by mails.dpdk.org (Postfix) with ESMTP id D73AC40269 for <dev@dpdk.org>; Wed, 5 Jun 2024 07:55:43 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K16lCMaVgCuo4MA48Fh9dSEXB4nytk/o7w+iiTEyw4mi6FzvsaTEmuFEhIddKq8xRPk7UKHo6bo6eQ1Db+wikUYfKZBnrRsIHcYb8eDyfA9U74j8EDLo95B0GrJ8ud6zSvFCepaPxzjhLjhvKZj+2PLE3F3DnvvH/X1F9tlbWTpyr47BW1FUCleOCVXrKteiQSfdHq0WSSHNgnkmCDL555MvecuZ77yiDB4fYcWBndkfz9HxeLDSfsxQR3NUKbF0LQ0H7uHmKTGHenUUUplouHmLeUryFtujupHkc8ILzG2GFZR0UvSt6fgdMnPI5w7VGuKT79jFERnVyOxVVREzew== 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=/YGl/m8T1pJnxqBMSgREe5LtcSRwNKKTIuFQvyT2V48=; b=oYQqrrE4YOzpr9m8UdeGTC0TkXX+PaaAWngWFJrB02+3qiDqrFeqdMwdS5U7pPITMbjX9J0IDUDyA/NME2zaqCxiA33G/s9BcJ9jMMkvxJxOZnv/x8bzOE1alTcHcD//U7U4NMOaE8NLC9HcLLMz3MzSSTEnczGU0yVucIw4IK0qVDS9tvBOCHh9nXwL0Q/uk00AoW6gqmriGYOR0o1uESveEiWAJqCoC75AYMuVVOkxJuW9hUybmQHxDDsHfi/uOuHqMHm1JVeSXD8Wrd6sriYaDV1tGqW7+IaHtaqUSzwleWNYa5NqH4h8Y1VwXBaDVdvIF492LpzKoMR16IyjUw== 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=/YGl/m8T1pJnxqBMSgREe5LtcSRwNKKTIuFQvyT2V48=; b=oSxLV5TL/277X/sjzd9zZ3B77X0UG18QHZlp00k6XYfIKd9s+7hkrg/ZWfpngyNN7rYr1RS6waoNUQ4gOdjvMwD8PWlnZsizww8ys/G34vD47EGqnZnvb78V9E8fMNcLWKcWlh3DIPlu7lRTei3NwZYGp9fLggI7uqgrokSG8eE= 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 DM6PR13MB4050.namprd13.prod.outlook.com (2603:10b6:5:2ae::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7656.16; Wed, 5 Jun 2024 05:55:40 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%7]) with mapi id 15.20.7633.001; Wed, 5 Jun 2024 05:55:40 +0000 From: Chaoyong He <chaoyong.he@corigine.com> To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He <chaoyong.he@corigine.com> Subject: [PATCH 0/2] add function to set dedicated queue size Date: Wed, 5 Jun 2024 13:55:18 +0800 Message-Id: <20240605055520.2587034-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ2PR07CA0003.namprd07.prod.outlook.com (2603:10b6:a03:505::26) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|DM6PR13MB4050:EE_ X-MS-Office365-Filtering-Correlation-Id: d7353093-44c6-4977-5012-08dc852420f7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|52116005|376005|1800799015|366007|38350700005; X-Microsoft-Antispam-Message-Info: ngZJ+eLRsxr0Ogqu+DDSZK1VSNYU/WJP2rUMiDulgP6TPRRIDYigW6Xp1+5lQtvVl+KkHw/zNGnibXamxwpjqt3AY+bZT/YllOlLoi0w2Q+SaPPsltzslRxQ/BIPfSpFKkZvooS3RqFf0h864v7uoE7jeXbd0+tw5bPJpSpNGMWoC9NR/nRv6VWgcEFu0wP0lkj4TbsVrrVKdZcYJrLAp6YjmERfP+e2QJ7Qszf1MNVFQbbmNv+VfKyK/B5wfsiEsILzrInR9YE71jFt2MByb86n59cAv7rfwjSvFLEBfE4DkcKZUFPvFFNvT+SSSPMc95y4vynsMazDvT2T4enQyYPJav7W7XHFKnKT1cDh88TWHFMhG4aao1S1anLAWjZnEit2vqhCIVHw+pvJd+bPDx2GCwHREKif6KA2DRGAlTGZb1FNdjnG9Uy+cQwRr19GVapRWCtLcZGJfQKopSbr7slidbj0s2al7t8Tu/YZfCEBiuFHW5b4zu+1k0WiAdNGPqgIZSVOQtzi/Q6CvXeg+DhWsic5yS9UV9UEE1tCovKmjK02ErLCHIJCauAi/D80raRgd8D2HDAP/iSjWgI9T+2vlla0Fs2j2VlK+CAd0xurd7/miF4F+KFlN8uC21CzqcUz136Fehq3whYpzTidVjGX6NPjuFnacxUWNfwP2dfcINpiyhi45ff6KUmSwJJFW1iLf7SbrIa1qT5ta7o+4Z7gSivzCO8U4/g0sVD6KGqB3gFPbRBMmina8lQybQzPfDBViupjQMiiBk3XRUqmZqEU8rNDSLshkadK/0DVj77xt6XxmdC1Udk1fftfRmmMElwVlRuukGH3MrYoLRCr62/GCzZsJxdH8p1bf1XtAmo3QvWbelx5LO6B+NDfVEDeh9OyaGJOGvOXYMp9ys+2O0ZCQNYMY8GlwzPshsRFvSjYB3Vp937I8asXCrNo3hNY4FzM6z8yrZkNGXG0fgdC+8Lblg+rgMGDWSRwkqvm61iyAShfzzLrzr+6xzx3f1qqXPX8X0+36B6CPD6fSQIzEvNNYk4jUchOR8jM8v+7H3yKGFXjtn3Uj6CC/eaRbZ12mED2MevBdzGyItTXVu4o4mcAjO82pU9pHNbFbQnot6Tkwu8BGNwR+b3ceexZKoQZ+mROr5G7rEtpHfQzEQQ8AHr9HUOmuZJLGIHMNKkRK2l0IZCftiAto4LMHTz1j7JPojwxLDGKBbqQNHgdgdmRvOj+0bavDyFQgljCw9ge3yEK+rUvoof3hWPHPMh8fpoHvDdITYMks7ltEzR3xR/PyWKoqgLHb9NZIbZJjVq4y4eSoDVuiQBlg0/mYgUXyvNxzi9EUIyFMRTwX6BiEcILyeVT2koC57KYbXpenb3ficA= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(52116005)(376005)(1800799015)(366007)(38350700005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g4/RFZKNhE4X5LmWH9eNnIIcFq6EYAVz+Jtnts20wvQStULKMUrNKZlWqXHQuoDPfOavxnZCfFt+3WPk6zmYhiQ93Lc3nFhdd0HznvR2w37Uwa4TGP75fHVs3BdwtpIuLx5DGrZxCWKJTAeKfBLBrvuzeYjKiyS1jQjhf/5fHDnojMk/+hYu9GgPsi1i7sclbJTqCcF7dLvo6EPBNoEYenhnNzXJWJjGAQp5RcBk070g22oL0i49ZB1p/XWpdjArFyGyi6vrxvb4H/vPZ71CvlxMSpHKt+vgCh2B+5L4peAqKyRtjhxfopVhlS+Kki8XOubHMGuUjn+Cuhw+JU+vh8BsxH3fjBoTZ+PzafMhMFmE3kN8MhHIBFqIFg41uOycM5zFb2txyyUlhyALpXfpfEarR7dr23WFACIDi36NuccHzY9f1NKTBMB1QIEipkMwqTZ+Mcmq+VEzoIO0N5Zplik5W7WfEtr8StGCHg6WRpFrVYzFp3SKLKoPDZifJ/mfxIatVjacMyd6bRDQxfDtmaM8Rj/4vndQhbs9b5f6BjxNMvsfOE8oJPnpfDLEIkZ7R7njCZNucGOL6FxrFbu/mgHiH701lVpTVe3SPBbse+HfvpD4A== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: d7353093-44c6-4977-5012-08dc852420f7 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 05:55:40.1565 (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: +T1I7703HzGUA/IOJXbTSq1v73wjN00XKxyruqrNRJrrhzW65LhRpKGLHauiNdQizW50i2HVx7AolmI50NpmbYXQykCPJVDC854gZj6Jp30= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR13MB4050 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
add function to set dedicated queue size
|
|
Message
Chaoyong He
June 5, 2024, 5:55 a.m. UTC
This patch series mainly add a function to bonding PMD to set dedicated queue size, also add a command to testpmd application to invoke this function. At the same time, standard the log message of bonding PMD. Long Wu (2): net/bonding: standard the log message net/bonding: add command to set dedicated queue size .../link_bonding_poll_mode_drv_lib.rst | 8 ++ doc/guides/rel_notes/release_24_07.rst | 4 + drivers/net/bonding/bonding_testpmd.c | 126 ++++++++++++++---- drivers/net/bonding/eth_bond_8023ad_private.h | 3 + drivers/net/bonding/rte_eth_bond_8023ad.c | 39 ++++++ drivers/net/bonding/rte_eth_bond_8023ad.h | 23 ++++ drivers/net/bonding/rte_eth_bond_pmd.c | 6 +- drivers/net/bonding/version.map | 1 + 8 files changed, 185 insertions(+), 25 deletions(-)
Comments
On Wed, 5 Jun 2024 13:55:18 +0800 Chaoyong He <chaoyong.he@corigine.com> wrote: > This patch series mainly add a function to bonding PMD to set > dedicated queue size, also add a command to testpmd application > to invoke this function. > > At the same time, standard the log message of bonding PMD. > > Long Wu (2): > net/bonding: standard the log message > net/bonding: add command to set dedicated queue size > > .../link_bonding_poll_mode_drv_lib.rst | 8 ++ > doc/guides/rel_notes/release_24_07.rst | 4 + > drivers/net/bonding/bonding_testpmd.c | 126 ++++++++++++++---- > drivers/net/bonding/eth_bond_8023ad_private.h | 3 + > drivers/net/bonding/rte_eth_bond_8023ad.c | 39 ++++++ > drivers/net/bonding/rte_eth_bond_8023ad.h | 23 ++++ > drivers/net/bonding/rte_eth_bond_pmd.c | 6 +- > drivers/net/bonding/version.map | 1 + > 8 files changed, 185 insertions(+), 25 deletions(-) > This is confusing. The patch goes to all the effort to configure rx_queue_size but it is never actually used in the driver.
> On Wed, 5 Jun 2024 13:55:18 +0800 > Chaoyong He <chaoyong.he@corigine.com> wrote: > > > This patch series mainly add a function to bonding PMD to set > > dedicated queue size, also add a command to testpmd application to > > invoke this function. > > > > At the same time, standard the log message of bonding PMD. > > > > Long Wu (2): > > net/bonding: standard the log message > > net/bonding: add command to set dedicated queue size > > > > .../link_bonding_poll_mode_drv_lib.rst | 8 ++ > > doc/guides/rel_notes/release_24_07.rst | 4 + > > drivers/net/bonding/bonding_testpmd.c | 126 ++++++++++++++---- > > drivers/net/bonding/eth_bond_8023ad_private.h | 3 + > > drivers/net/bonding/rte_eth_bond_8023ad.c | 39 ++++++ > > drivers/net/bonding/rte_eth_bond_8023ad.h | 23 ++++ > > drivers/net/bonding/rte_eth_bond_pmd.c | 6 +- > > drivers/net/bonding/version.map | 1 + > > 8 files changed, 185 insertions(+), 25 deletions(-) > > > > This is confusing. > The patch goes to all the effort to configure rx_queue_size but it is never > actually used in the driver. We do used it in the function 'member_configure_slow_queue()' of file 'drivers/net/bonding/rte_eth_bond_pmd.c'. The original logic hardcodes the value of dedicated hardware Rx/Tx queue size into (128/512) and this will cause the bonding port start fail if the NIC requires more Rx/Tx descriptors than the hardcoded number. And this is the situation for our NFP card: ``` testpmd> port stop all testpmd> create bonding device 4 0 testpmd> set bonding balance_xmit_policy 2 l34 testpmd> add bonding member 0 2 testpmd> add bonding member 1 2 testpmd> set bonding lacp dedicated_queues 2 enable testpmd> show bonding config 2 testpmd> port start 2 Configuring Port 2 (socket 0) ETHDEV: Device with port_id=0 already stopped ETHDEV: Device with port_id=1 already stopped ETHDEV: Device with port_id=0 already stopped ETHDEV: Invalid value for nb_rx_desc(=128), should be: <= 32768, >= 512, and a product of 128 member_configure_slow_queue(1699) - rte_eth_rx_queue_setup: port=0 queue_id 1, err (-22) ETHDEV: Device with port_id=1 already stopped ETHDEV: Invalid value for nb_rx_desc(=128), should be: <= 32768, >= 512, and a product of 128 member_configure_slow_queue(1699) - rte_eth_rx_queue_setup: port=1 queue_id 1, err (-22) Port 2: 88:3C:C5:A0:32:46 Checking link statuses... Done ``` And if apply this patch and configure the 'rx_queue_size', then we can start the bonding port successfully.