Message ID | 20230301024826.885727-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 27CC841DA2; Wed, 1 Mar 2023 03:49:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB05940A8A; Wed, 1 Mar 2023 03:49:01 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2117.outbound.protection.outlook.com [40.107.243.117]) by mails.dpdk.org (Postfix) with ESMTP id C03E54067B for <dev@dpdk.org>; Wed, 1 Mar 2023 03:49:00 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XUiDZ2qkEc/U5FdlhCJ0gm2wVj4fglKaYlAtN3+7AvXxbqGc72Id/tm1RfXjrGJ1L3YMGbDs3/yOObsdmYYDYrlbkCgHQnEHIERH8TgCdvBiZdH3HY3h4zQnAuLIQbND0yH/KC66ADi2ZeGaqQWZHiqaIzZrpMCm8Yk1aDsqd4DUoAnXbLEduhspaqpYMhLbdemN8qCM/JQFt+K4CsWJ64fzTNgQj8eIuKAV+PPl37puxtuU9EQ69inq0LT+AM7R0CZep7VHhY3/bBzCmEFV9JtUWyCDLv+TzRSAnF1FUgTiSgxzw7SIPoyW5V3k6CoJlLv4pp0StDLtknGLXXGMAg== 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=/VDJoi65Jv6eCKPeYMLawmD7Z+zWpqP4UkMxGE8rAbs=; b=EpoDi7GypJFkIcJeSkMnUeLOkGbjHIvhWZo2Q8efXwliY7hzUsOZ5m9latfcXqNmUAcDgn2dg51DjTsP6o5tJEX+guuHyIrcSQ3j6XR0HuFQy6ucmdrv9tfxP5R88IakggtLl4IjkgGfly8antbQug2ydsRQDX35kmJXTJ6DsdVN09u7Bw53Y/KSEZAEVZqeCf5AKo3M5r3h5o4Xd3JB/NNVlQS1S1S2+8/zWScgXodHYhveSF1PFeukAWGtz9eM+IKkDdU2nRuYHnFTGgaIlnkhM8yd/tX+1JSZjmIxyEsWEcX/PYV8JCZyQgECyJjoescSRHjW6i78GPZhMsDUtA== 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=/VDJoi65Jv6eCKPeYMLawmD7Z+zWpqP4UkMxGE8rAbs=; b=bvb/dv7yXwb3SGKlXbkZSLV3oftYIikCeTokR+qZNIRuq+yNTzxy+Mc5/Rpma/a0ZtevfK5g8M76RMH+WSEJhvnsbnshRgM4Yz917q0TQ6ePB72GMJ2DA8Sfg4ro1eNHzpLWoUtJtZ5MBFIdAXkk5/nlfw0Ad4wfn98M6wXkcDA= 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 CH0PR13MB4585.namprd13.prod.outlook.com (2603:10b6:610:cb::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29; Wed, 1 Mar 2023 02:48:57 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7ea4:e421:5dd5:9f4d]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7ea4:e421:5dd5:9f4d%7]) with mapi id 15.20.6134.030; Wed, 1 Mar 2023 02:48:57 +0000 From: Chaoyong He <chaoyong.he@corigine.com> To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He <chaoyong.he@corigine.com> Subject: [PATCH v3 0/2] enhance bonding PMD to support the LACP negotiation Date: Wed, 1 Mar 2023 10:48:24 +0800 Message-Id: <20230301024826.885727-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230216083231.4721-1-chaoyong.he@corigine.com> References: <20230216083231.4721-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI2P153CA0008.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::19) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|CH0PR13MB4585:EE_ X-MS-Office365-Filtering-Correlation-Id: 0b2ae6ca-1ddd-4694-3e01-08db19ff8033 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: snVQBDhRpibufhKOVRUV3GowLOekpccIP9EFduHmjsJmK/rWE34uILnub8AhgqMQ+8Uzs3e+GEZCzcVAMkNcbd4vGIENCZ437xUb0L1HLh0ea8Z3yb/vRhzO+eWIBF7MEYeJzsTc0QwfX9zUFUgYqRfQS4+KZdJCTxc/R3FB7YOjYcr7o7zkcPS1ohHMocf+QiA+Umq4b1Qf+rnC6UGqPYuXtMqIqMCw2vQKjQvs0fHLQ27v49hQ6cZU4zXuvGg6wEMXiqHioG54k/dLzFXtxlE7L7fCjjaOq/hBDaVuHRImUfSE8X0q68ElZcvYxtLKTbrm2jvuBw+kEg7e7IU6su+BbCQiI1DAq+vF8zyLfg1aTbUeT/4VQGjJyPoav0hiRmFhj5VwyGSRA4Bl7wq5M6+HwGDlzJ8cfmqX6eYb7ZCwFAShuR52x4gauyTw2869s342KT+cL4tBLXkj7WsVl6rbjDU4F/Ikk8yv8H+xEQxdvGJbiw4IVWM6DMNDKZKlhg+YVeCQmJtpK1Pecq+p5Z7kkSt5u5nWhl0GO3NfYPgKs0pVxz/cKB+HPrAT1bpQ/70RssoIwmKx2zvTuYhoBt9/0mHl0N9th/acCThaZPq7EwLPMXJJ0gg8hZRgxFPkCnBCVcKXTKnz+nXTo1TpNu2aoP09PWFnxAk/mFrxc+TLxyku3gREuQ/XaZnuCxnk3ybgIz1pABae6PIbAsCVxzf34oe97R7nwNRWgmrYBIJ+G0ryDWsHujTwWAjUnHyh 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:(13230025)(4636009)(346002)(366004)(396003)(136003)(376002)(39840400004)(451199018)(66476007)(6506007)(1076003)(66946007)(66556008)(8676002)(4326008)(6916009)(6486002)(316002)(478600001)(5660300002)(36756003)(44832011)(4744005)(52116002)(86362001)(38100700002)(2906002)(38350700002)(6666004)(83380400001)(8936002)(107886003)(2616005)(26005)(186003)(41300700001)(6512007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?m+J9hUVwfKY/P1hrkWOe5+tAD0im?= =?utf-8?q?RikQiAoEfZid/jRpVRhcszWuTO5YP0n8l5Ca5Tk50cAIcUCIkNBe5ahHx+8a/IYjx?= =?utf-8?q?sh4jhX+bPCE6tKzduATQIFeVLQ66Owx+XMJdGHy1ALfULrmHvf8GCkiaR7N8VlaB3?= =?utf-8?q?VqGCChuPuPVrKuK2bCwQc1nRZqKK9DUnjJbRCF9snZ86pfslJh5PWIDOpdWpOlEjw?= =?utf-8?q?jOEFBUsuw/X+CixUqx4JhcqKidonwJGBo916WebPLYG+IzbymG1ssW87ZfihORS1X?= =?utf-8?q?41BuWUDLE2Czwc9kYTmeoM/g49vWmfgpgMIcnSRW4M8FEA2C7NMaKME00NOj3jibJ?= =?utf-8?q?/of43RtsHNWvhYEZwZfmJNFEvOPx5y/0a2NgtwW6Y2CzK0FrUdZNs4RYiqxbSVRYZ?= =?utf-8?q?fJx92Xs5xVxza3d09dXX2tNZXDG7+cWCVeI/D5SUsZmjeQnky9k9MuBd1JKG8byem?= =?utf-8?q?LBDGyTzz3LIlDJMAU5Xeb4s4kiXOb9E0/0lDj/kYtIsk++Dwyuidcs65FRR7f063w?= =?utf-8?q?vdCxc5AV4Xo3wCO107ecT9hOP6cvxxpuv1dHT5VVYjLzoXE3asfgWb2TFQv64MqsP?= =?utf-8?q?R1WuxAiPoUDToGnGULZSi7Sd12/qEr9eBZyFxe6mmL0kc6d+1CR+YNxZMuF/xT1X7?= =?utf-8?q?lsgF77nMTfhRxLhSL/ySx/tUOXYawJRVbmBPaq+x/hje0RUHu3+SvBlkNgzopECzx?= =?utf-8?q?iIGQ3JLDRo8vvf4aIvZOlZ8D0HCAzjsOk2H4T3XHWOEwT4eGZDTcqeOC2nlSMNEth?= =?utf-8?q?35xQsi/iUd1uHmQKdGG/EKd0P3pQQahWXGBPv0hWN+egRlTQJO5mlgwohQfOKLRi9?= =?utf-8?q?Yq+oJsBnFZnLVycloPa4C/xmS/71ew/FxW2KhoZrkxaW+hmGzrQFaWovSWWwlSDGM?= =?utf-8?q?mPr0f8QBpfHYiy8cgwVIKHqI/Lg8G0Zkz7iIWsqSarxZNy/84rO8T+z+mBRfXEKfN?= =?utf-8?q?Fz4BkN0kDfJ8DPrUE2zMGJH7UUs2wTAkpQ5Z+gDU/N8hBdqG22+d4ajxJ+9HjGE5m?= =?utf-8?q?ZRTOe1ukN62bz6GOFCCqVa8uXg2keyxVjcFycDoahqBtR90QBXoMZOj6mHgF93d35?= =?utf-8?q?x496ErKc7xXgmgbubt5T+RRGQN2JsW0GPJ3W7tKH7lyhW65U5ZGtTa+jRuCTLrbTX?= =?utf-8?q?Jtutx3G/c6Fnsk0fmWVv9zQ2/Sk7PPsdv4JG4UEc50Lii7lOVbGKnywpjmH+lKrUP?= =?utf-8?q?cMiMsZbj4eZuot1Wz0spJAF0/bpY68Y6E7Z6gSooWn9CwQtSPF/kAwh5fycXDdv4Q?= =?utf-8?q?FObiyCQKFaKqGfDRVG/S9TKa7pwG2gyb0nV6KQL4ImwpUWtVRVN2H9rMrpt1ofKTc?= =?utf-8?q?KAirjR5fHyOxC0cmdcjDgOotWtnNmXOwm20dPgwMDgc/n5wl+qZlV8RcFhv6yt9Gk?= =?utf-8?q?1mwUHlL6dXmTKc0VkiDieIDTAPPjuV+DF3SFBsY+eJZNzpV5ow4yME/CXLkZoF/vx?= =?utf-8?q?joWoRcB4qa2uwrSdgFoR3QgkGmWX58uXJJItXsg/3VrB2IwvOj/Eo1gvwzG2Vus2a?= =?utf-8?q?G6QVmsDBsUaHixdmvitHdLcoa9rv2/haHQ=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b2ae6ca-1ddd-4694-3e01-08db19ff8033 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2023 02:48:56.9377 (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: Cf7eIGXAyG3TQVbaLEBxuHi1tztoAf/TkExnt6FOBgaR3TtyReBvEXdGg676Q2kovtVRhrKaM/3bm0kEdz8N0nbPN3JLGI2ji2fZhPbMAWc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR13MB4585 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 |
enhance bonding PMD to support the LACP negotiation
|
|
Message
Chaoyong He
March 1, 2023, 2:48 a.m. UTC
App may not support the LACP negotiation in some cases. This patch series solves this problem and add logics to testpmd app to support the forward of bonding port in mode 4 with the disabled dedicated queue. --- v2: * Export symbol to solve the link problem. v3: * Add 'rte_experimental' flags to new add API. * Move '#ifdef RTE_NET_BOND' into function. * Replace 'slave' with 'member' in new add logic. --- Long Wu (2): net/bonding: add independent LACP sending function app/testpmd: add support for bonding port's LACP negotiation app/test-pmd/config.c | 19 ++++++++ app/test-pmd/parameters.c | 4 ++ app/test-pmd/testpmd.c | 37 +++++++++++++++ app/test-pmd/testpmd.h | 4 ++ doc/guides/testpmd_app_ug/run_app.rst | 4 ++ drivers/net/bonding/rte_eth_bond_8023ad.c | 58 +++++++++++++++++++++++ drivers/net/bonding/rte_eth_bond_8023ad.h | 21 ++++++++ drivers/net/bonding/version.map | 8 ++++ 8 files changed, 155 insertions(+)
Comments
Hi all, A gentle ping on this series. On 2023-03-01 10:48:24 +0800, Chaoyong He wrote: > App may not support the LACP negotiation in some cases. > This patch series solves this problem and add logics to > testpmd app to support the forward of bonding port in > mode 4 with the disabled dedicated queue. > > --- > v2: > * Export symbol to solve the link problem. > v3: > * Add 'rte_experimental' flags to new add API. > * Move '#ifdef RTE_NET_BOND' into function. > * Replace 'slave' with 'member' in new add logic. > --- > > Long Wu (2): > net/bonding: add independent LACP sending function > app/testpmd: add support for bonding port's LACP negotiation > > app/test-pmd/config.c | 19 ++++++++ > app/test-pmd/parameters.c | 4 ++ > app/test-pmd/testpmd.c | 37 +++++++++++++++ > app/test-pmd/testpmd.h | 4 ++ > doc/guides/testpmd_app_ug/run_app.rst | 4 ++ > drivers/net/bonding/rte_eth_bond_8023ad.c | 58 +++++++++++++++++++++++ > drivers/net/bonding/rte_eth_bond_8023ad.h | 21 ++++++++ > drivers/net/bonding/version.map | 8 ++++ > 8 files changed, 155 insertions(+) > > -- > 2.39.1 >
A gentle ping on this series. There has a large patch series enhance the bonding PMD depends on this series is waiting for send out, it would be kind if this could be looked at early in this release cycle. > -----Original Message----- > From: Chaoyong He > Sent: Wednesday, March 1, 2023 10:49 AM > To: dev@dpdk.org > Cc: oss-drivers <oss-drivers@corigine.com>; Niklas Soderlund > <niklas.soderlund@corigine.com>; Chaoyong He > <chaoyong.he@corigine.com> > Subject: [PATCH v3 0/2] enhance bonding PMD to support the LACP > negotiation > > App may not support the LACP negotiation in some cases. > This patch series solves this problem and add logics to testpmd app to support > the forward of bonding port in mode 4 with the disabled dedicated queue. > > --- > v2: > * Export symbol to solve the link problem. > v3: > * Add 'rte_experimental' flags to new add API. > * Move '#ifdef RTE_NET_BOND' into function. > * Replace 'slave' with 'member' in new add logic. > --- > > Long Wu (2): > net/bonding: add independent LACP sending function > app/testpmd: add support for bonding port's LACP negotiation > > app/test-pmd/config.c | 19 ++++++++ > app/test-pmd/parameters.c | 4 ++ > app/test-pmd/testpmd.c | 37 +++++++++++++++ > app/test-pmd/testpmd.h | 4 ++ > doc/guides/testpmd_app_ug/run_app.rst | 4 ++ > drivers/net/bonding/rte_eth_bond_8023ad.c | 58 > +++++++++++++++++++++++ drivers/net/bonding/rte_eth_bond_8023ad.h > | 21 ++++++++ > drivers/net/bonding/version.map | 8 ++++ > 8 files changed, 155 insertions(+) > > -- > 2.39.1
A gentle ping on this series. > -----Original Message----- > From: Chaoyong He > Sent: Friday, May 12, 2023 9:51 AM > To: dev@dpdk.org > Cc: oss-drivers <oss-drivers@corigine.com>; Niklas Soderlund > <niklas.soderlund@corigine.com> > Subject: RE: [PATCH v3 0/2] enhance bonding PMD to support the LACP > negotiation > > A gentle ping on this series. > > There has a large patch series enhance the bonding PMD depends on this > series is waiting for send out, it would be kind if this could be looked at early in > this release cycle. > > > -----Original Message----- > > From: Chaoyong He > > Sent: Wednesday, March 1, 2023 10:49 AM > > To: dev@dpdk.org > > Cc: oss-drivers <oss-drivers@corigine.com>; Niklas Soderlund > > <niklas.soderlund@corigine.com>; Chaoyong He > > <chaoyong.he@corigine.com> > > Subject: [PATCH v3 0/2] enhance bonding PMD to support the LACP > > negotiation > > > > App may not support the LACP negotiation in some cases. > > This patch series solves this problem and add logics to testpmd app to > > support the forward of bonding port in mode 4 with the disabled dedicated > queue. > > > > --- > > v2: > > * Export symbol to solve the link problem. > > v3: > > * Add 'rte_experimental' flags to new add API. > > * Move '#ifdef RTE_NET_BOND' into function. > > * Replace 'slave' with 'member' in new add logic. > > --- > > > > Long Wu (2): > > net/bonding: add independent LACP sending function > > app/testpmd: add support for bonding port's LACP negotiation > > > > app/test-pmd/config.c | 19 ++++++++ > > app/test-pmd/parameters.c | 4 ++ > > app/test-pmd/testpmd.c | 37 +++++++++++++++ > > app/test-pmd/testpmd.h | 4 ++ > > doc/guides/testpmd_app_ug/run_app.rst | 4 ++ > > drivers/net/bonding/rte_eth_bond_8023ad.c | 58 > > +++++++++++++++++++++++ > drivers/net/bonding/rte_eth_bond_8023ad.h > > | 21 ++++++++ > > drivers/net/bonding/version.map | 8 ++++ > > 8 files changed, 155 insertions(+) > > > > -- > > 2.39.1
On 6/6/2023 2:23 AM, Chaoyong He wrote: > A gentle ping on this series. > >> -----Original Message----- >> From: Chaoyong He >> Sent: Friday, May 12, 2023 9:51 AM >> To: dev@dpdk.org >> Cc: oss-drivers <oss-drivers@corigine.com>; Niklas Soderlund >> <niklas.soderlund@corigine.com> >> Subject: RE: [PATCH v3 0/2] enhance bonding PMD to support the LACP >> negotiation >> >> A gentle ping on this series. >> >> There has a large patch series enhance the bonding PMD depends on this >> series is waiting for send out, it would be kind if this could be looked at early in >> this release cycle. >> >>> -----Original Message----- >>> From: Chaoyong He >>> Sent: Wednesday, March 1, 2023 10:49 AM >>> To: dev@dpdk.org >>> Cc: oss-drivers <oss-drivers@corigine.com>; Niklas Soderlund >>> <niklas.soderlund@corigine.com>; Chaoyong He >>> <chaoyong.he@corigine.com> >>> Subject: [PATCH v3 0/2] enhance bonding PMD to support the LACP >>> negotiation >>> >>> App may not support the LACP negotiation in some cases. >>> This patch series solves this problem and add logics to testpmd app to >>> support the forward of bonding port in mode 4 with the disabled dedicated >> queue. >>> >>> --- >>> v2: >>> * Export symbol to solve the link problem. >>> v3: >>> * Add 'rte_experimental' flags to new add API. >>> * Move '#ifdef RTE_NET_BOND' into function. >>> * Replace 'slave' with 'member' in new add logic. >>> --- >>> >>> Long Wu (2): >>> net/bonding: add independent LACP sending function >>> app/testpmd: add support for bonding port's LACP negotiation >>> >>> app/test-pmd/config.c | 19 ++++++++ >>> app/test-pmd/parameters.c | 4 ++ >>> app/test-pmd/testpmd.c | 37 +++++++++++++++ >>> app/test-pmd/testpmd.h | 4 ++ >>> doc/guides/testpmd_app_ug/run_app.rst | 4 ++ >>> drivers/net/bonding/rte_eth_bond_8023ad.c | 58 >>> +++++++++++++++++++++++ >> drivers/net/bonding/rte_eth_bond_8023ad.h >>> | 21 ++++++++ >>> drivers/net/bonding/version.map | 8 ++++ >>> 8 files changed, 155 insertions(+) >>> >>> -- >>> 2.39.1 > Hi Chaoyong, Sorry for the delay, bonding maintainers are cc'ed. I can see this set adds new bonding specific APIs, instead can't application (in this case testpmd) call bonding Tx function explicitly to handle LACP packets? Or should we have a special forwarding mode for bonding, as we have one for ICMP echo?
> On 6/6/2023 2:23 AM, Chaoyong He wrote: > > A gentle ping on this series. ... > >>> Long Wu (2): > >>> net/bonding: add independent LACP sending function > >>> app/testpmd: add support for bonding port's LACP negotiation > >>> > >>> app/test-pmd/config.c | 19 ++++++++ > >>> app/test-pmd/parameters.c | 4 ++ > >>> app/test-pmd/testpmd.c | 37 +++++++++++++++ > >>> app/test-pmd/testpmd.h | 4 ++ > >>> doc/guides/testpmd_app_ug/run_app.rst | 4 ++ > >>> drivers/net/bonding/rte_eth_bond_8023ad.c | 58 > >>> +++++++++++++++++++++++ > >> drivers/net/bonding/rte_eth_bond_8023ad.h > >>> | 21 ++++++++ > >>> drivers/net/bonding/version.map | 8 ++++ > >>> 8 files changed, 155 insertions(+) > >>> > >>> -- > >>> 2.39.1 > > > > Hi Chaoyong, > > Sorry for the delay, bonding maintainers are cc'ed. > > I can see this set adds new bonding specific APIs, instead can't application (in > this case testpmd) call bonding Tx function explicitly to handle LACP packets? Actually, I think apps should not aware of LACP packets because these packets are stored by bonding pmd(port->tx_ring). > Or should we have a special forwarding mode for bonding, as we have one for > ICMP echo? Yes, both ICMP and LACP are protocol. But LACP is related to a type of port (bonding port in mode4). Of course, we can add a special forwarding mode for bonding, but that will make it valid in very narrow situation. What I really want is to support mode4 bonding port on every forward mode of testpmd, and I also want to treat dpdk bonding port as a regular NIC.
On 6/7/2023 4:10 AM, Chaoyong He wrote: >> On 6/6/2023 2:23 AM, Chaoyong He wrote: >>> A gentle ping on this series. > ... >>>>> Long Wu (2): >>>>> net/bonding: add independent LACP sending function >>>>> app/testpmd: add support for bonding port's LACP negotiation >>>>> >>>>> app/test-pmd/config.c | 19 ++++++++ >>>>> app/test-pmd/parameters.c | 4 ++ >>>>> app/test-pmd/testpmd.c | 37 +++++++++++++++ >>>>> app/test-pmd/testpmd.h | 4 ++ >>>>> doc/guides/testpmd_app_ug/run_app.rst | 4 ++ >>>>> drivers/net/bonding/rte_eth_bond_8023ad.c | 58 >>>>> +++++++++++++++++++++++ >>>> drivers/net/bonding/rte_eth_bond_8023ad.h >>>>> | 21 ++++++++ >>>>> drivers/net/bonding/version.map | 8 ++++ >>>>> 8 files changed, 155 insertions(+) >>>>> >>>>> -- >>>>> 2.39.1 >>> >> >> Hi Chaoyong, >> >> Sorry for the delay, bonding maintainers are cc'ed. >> >> I can see this set adds new bonding specific APIs, instead can't application (in >> this case testpmd) call bonding Tx function explicitly to handle LACP packets? > > Actually, I think apps should not aware of LACP packets because these packets are stored by bonding pmd(port->tx_ring). > >> Or should we have a special forwarding mode for bonding, as we have one for >> ICMP echo? > > Yes, both ICMP and LACP are protocol. But LACP is related to a type of port (bonding port in mode4). > Of course, we can add a special forwarding mode for bonding, but that will make it valid in very narrow situation. > > What I really want is to support mode4 bonding port on every forward mode of testpmd, and I also want to treat dpdk bonding port as a regular NIC. > It makes sense to make bonding work as regular NIC and supported by all forwarding modes. But current patch adds bonding specific check to the shared forwarding function, that is not good I think. If application doesn't need to know about LACP packages, or if there is no decision making required by application, can we handle LACP packets within bonding PMD, transparent to application? Chas, Connor, what do you think?
Hi, Ferruh, 在 2023/6/23 21:32, Ferruh Yigit 写道: > On 6/7/2023 4:10 AM, Chaoyong He wrote: >>> On 6/6/2023 2:23 AM, Chaoyong He wrote: >>>> A gentle ping on this series. >> ... >>>>>> Long Wu (2): >>>>>> net/bonding: add independent LACP sending function >>>>>> app/testpmd: add support for bonding port's LACP negotiation >>>>>> >>>>>> app/test-pmd/config.c | 19 ++++++++ >>>>>> app/test-pmd/parameters.c | 4 ++ >>>>>> app/test-pmd/testpmd.c | 37 +++++++++++++++ >>>>>> app/test-pmd/testpmd.h | 4 ++ >>>>>> doc/guides/testpmd_app_ug/run_app.rst | 4 ++ >>>>>> drivers/net/bonding/rte_eth_bond_8023ad.c | 58 >>>>>> +++++++++++++++++++++++ >>>>> drivers/net/bonding/rte_eth_bond_8023ad.h >>>>>> | 21 ++++++++ >>>>>> drivers/net/bonding/version.map | 8 ++++ >>>>>> 8 files changed, 155 insertions(+) >>>>>> >>>>>> -- >>>>>> 2.39.1 >>> Hi Chaoyong, >>> >>> Sorry for the delay, bonding maintainers are cc'ed. >>> >>> I can see this set adds new bonding specific APIs, instead can't application (in >>> this case testpmd) call bonding Tx function explicitly to handle LACP packets? >> Actually, I think apps should not aware of LACP packets because these packets are stored by bonding pmd(port->tx_ring). >> >>> Or should we have a special forwarding mode for bonding, as we have one for >>> ICMP echo? >> Yes, both ICMP and LACP are protocol. But LACP is related to a type of port (bonding port in mode4). >> Of course, we can add a special forwarding mode for bonding, but that will make it valid in very narrow situation. >> >> What I really want is to support mode4 bonding port on every forward mode of testpmd, and I also want to treat dpdk bonding port as a regular NIC. >> > It makes sense to make bonding work as regular NIC and supported by all > forwarding modes. > But current patch adds bonding specific check to the shared forwarding > function, that is not good I think. > > If application doesn't need to know about LACP packages, or if there is > no decision making required by application, can we handle LACP packets > within bonding PMD, transparent to application? > > Chas, Connor, what do you think? Agree with you, Currently testpmd is too "big" to add specific check. Also, private APIs should be restricted to add because we want to make bonding device as a regular NIC device. >