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 0B5D9426BB; Thu, 5 Oct 2023 04:40:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FFBD4028A; Thu, 5 Oct 2023 04:40:37 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2098.outbound.protection.outlook.com [40.107.93.98]) by mails.dpdk.org (Postfix) with ESMTP id AF53B40283 for ; Thu, 5 Oct 2023 04:40:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ll/JYwNUNILrQvtYIDyY1O6rjFgwYXQHqLCvw55cciw6auTkFzYHGGP7ZFzIE0ddCevtrLe/MeIFGsz05zkwU50qkekFU8aoaxCKZp9merqSU3NM1siQnOGB7bTNTC7K9bSaPvSzwoI7gZti6E2v75vJls5NJDU24qeYZuSgYEvJ3cUBSKIHO3DS/zklpdgcTYOuRCS04Jyf9fbCEKdwyK5NYuKad+d4m+a/FpyYn5ILLf9Dp0teprrYd8T5x05DeQcFccy6aeNvnDegWpFaHm7Dc1iXFKXH2zu0BEr3g2mHnmo3k0raHRDMeaw1ivawrdsuM8FZz4JNwj/kWBSwHg== 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=6Auc13p+lgW0q200fWhJcWi7qSJJQ2qA+PdABvKg4vo=; b=Wt0+IHomHWcimiJpJpS8hLuZC5PTNo8EZo+QyzVzaDN8GPlJdhj3MTPMMTtl2IeLuDPuPI6iwNeNx2AdtG7czWyx6pODZ1PuG8/KAUOoFVPItBK3KucJh7tJmbdrthPvc4WiY9eUDhnXEz6ckI9wP3S3MBvtALZmygxc9kN/LBzp630fT4Zu9NcOMSMkv5SN7Boy9M/p1KpurWtLlM+hS9RsTzemCrycy48HxbuennvU9s7K1CJZPjflirpvqjmxCGlUqTMbDBFi23wosylcZC8l3O+bhjeQj7oHVR07Uso9n4ry/+dbALvb/0zYDC6HrqOiPkDVoTuILYO9VGa2/g== 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=6Auc13p+lgW0q200fWhJcWi7qSJJQ2qA+PdABvKg4vo=; b=jJJKP3Qo2rBOo74dZeB4Nxl69Q4dYp+XzbOE150vApzG/+afVoofiF3+qpXsgDhi+IwENiQQ5awJFswHLB5Ff2iRU6keIk0H69U2tFMSzWfVtek1xk5NblsOFtL99JnoKnl6Rx+ohDySYAXclb+Ft+aT7XB8EwkDNrQF8A5797A= 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 BN0PR13MB4679.namprd13.prod.outlook.com (2603:10b6:408:125::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.34; Thu, 5 Oct 2023 02:40:34 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::28c0:63e2:ecd1:9314]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::28c0:63e2:ecd1:9314%4]) with mapi id 15.20.6813.027; Thu, 5 Oct 2023 02:40:34 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 0/8] Enhance the bond framework to support offload Date: Thu, 5 Oct 2023 10:40:04 +0800 Message-Id: <20231005024012.1279810-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PH0PR07CA0064.namprd07.prod.outlook.com (2603:10b6:510:f::9) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BN0PR13MB4679:EE_ X-MS-Office365-Filtering-Correlation-Id: 199b74d8-251f-4558-a57e-08dbc54c72c5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XhQ8d4yA5id8VrdBegBMRqHQG+QtLTknE63lCfw/l+ISBEdnEjxXiN35Wsxg0GJrUmeVTJOh4tMGvIZJCFYcerxJ5/WrelbXaK5JolwNYWpsxZI+hX05eBqqjUIKvj3bmek64IkN24zvWy7jrXT1GNBNOeGCL+Nk+/sys/kNjIh2EJLh+3Cfqxh21MleNd3BzF5Lt5Uw0geJcP36+EaAic3vpDr+zAYc9MsNlLfwtPq3Ov3lFUmAOgVLOKSCrm1LinLkgePlPX7qOz4JJH6/IdwG7hPWb8v6g3bKglJufLtYy46p4f7GWkLXDsKVd6lRt3uA1YOlVaNUIO4w4gqTsCHPxf6vst504wSg3tM0+PJD954nyTo+vMoWzCVYoVcvemKcrOSD8PcTFXM9oQFLhbBq6jbSJBOTcEI0YAsWa84P+X7Uw2yKmBLZglFmti3xrO43PwFBTGkD4r4vwx1xpZyXL1EYo4MhmRtxy3m1CCG4eLuB7Hhnb3sckXusUY5E99sRjSpTQALTiHcl5pB4wyWSsP3cjEBFCkBRpewPeBR9S20JpgIGyPPRJCOJ3K8bFOU8Q5I6U4GItj0cF5ZX8L9guSbAAtDHjqhabaquOQhWWCk38YCeNcuCUw/1o9OuzDFRa3JwlVbvF6p19+e3rCBjRhloNYGCRIWkTPzGan0= 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:(13230031)(346002)(39830400003)(136003)(396003)(376002)(366004)(230922051799003)(64100799003)(1800799009)(451199024)(186009)(52116002)(6506007)(2616005)(6512007)(107886003)(6486002)(36756003)(86362001)(38350700002)(38100700002)(2906002)(6916009)(26005)(478600001)(83380400001)(6666004)(1076003)(8676002)(316002)(8936002)(41300700001)(66556008)(66946007)(4326008)(5660300002)(44832011)(66476007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?kaMtpr1cwMcy7A2ftdODOXT7lMKlpd2eCAVBg3LeWKDZ2/50QoE4q54X7Fcw?= =?us-ascii?Q?DpmeW6lBp20fbxyXysHVUqOADJh02cQPWP9ZShdwpSZ7ZOrHeDk7WuwsujUd?= =?us-ascii?Q?laXUIYO321BPQ/koRmFciusCvSSSbtPYzAPtG1JKeohthFXjdK5LkMe/ZQpo?= =?us-ascii?Q?8aMnNXdoaFcB7A5+DKoZoveD1BTYfZyPhrDuTdl8wnF0TXoouiEyXprD5LDb?= =?us-ascii?Q?OVNqKOTw16c4/DsluOyQ3A++GiJxYqrJfuxgR+P+tRrHKmVwFCgQNGP1Qq6l?= =?us-ascii?Q?CNKmBbxmefM+73AGQme/GwdKRZ1Z5yXSLWT05HU1aAzBEg1H2PbfaRVJPlti?= =?us-ascii?Q?XyGhrOA3fvF3un8MWJEqiblsLEOXmogbe78/IsU6jEgPE+YNYpkL6G8TMUi4?= =?us-ascii?Q?QLNtqw9nYzX9SotFEiao+CDlML5w5P+Ox47TX6EH84lCfntsNsgn6KXd5zPA?= =?us-ascii?Q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HQNJkMasjg/+hAdua?= =?us-ascii?Q?XkfOFBuHuYjQLeGsYNXUL9zVHlw/fsuHIqZ7vLKbUSHPW1H4hCh743JUdCEW?= =?us-ascii?Q?zLTkjsCFXAItZy6CfZ6e9sWT3PGLZaVDEZA9aKYOmWJXB8BH4KCXqsMDnhPM?= =?us-ascii?Q?piXyUPg5s19aECnJ97rW7EKtLGd4tZ7KIIFFOhNy+hvzkSlyv8N2IHDxb0H8?= =?us-ascii?Q?haG/r1FDl/hCQVNejk5f29mZx/EFowSSldSgq4vkH4FR64XcsJY9pL3m+bKu?= =?us-ascii?Q?dA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 199b74d8-251f-4558-a57e-08dbc54c72c5 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2023 02:40:34.0147 (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: TuzYayED/9UxxFXWe3Yv6UOPPQh4v8yNuahMfq6bsHfft1wKs6+BWRb754LuyGuCKZQjNBXmDYAj5xYo+SQ6q1dnUfrOmRRnCEkGh0s119g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR13MB4679 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 This patch series try to enhance the bond framework to support the offload feature better: * Add new API to make the member port can access some information of the bond port which belongs. * Add new API to get the result of whether bond port is created by the member port. * Add two command line argument to control if enable member port notification and dedicated queue features. * Add logic to support add ports which share the same PCI address into bond port. * Also modify the testpmd application to test the new APIs and logics added by this patch series. Long Wu (8): ethdev: add member notification for bonding port ethdev: add API to get hardware creation of bonding port net/bonding: modify interface comment format net/bonding: add bonding port arguments net/bonding: support add port by data name net/bonding: create new rte flow header file net/bonding: support checking valid bonding port ID net/bonding: add commands for bonding port notification .../link_bonding_poll_mode_drv_lib.rst | 19 ++ drivers/net/bonding/bonding_testpmd.c | 128 +++++++++ drivers/net/bonding/eth_bond_8023ad_private.h | 52 ++-- drivers/net/bonding/eth_bond_private.h | 25 +- drivers/net/bonding/rte_eth_bond.h | 252 ++++++++++++++---- drivers/net/bonding/rte_eth_bond_8023ad.h | 76 ++++-- drivers/net/bonding/rte_eth_bond_alb.h | 34 ++- drivers/net/bonding/rte_eth_bond_api.c | 123 +++++++++ drivers/net/bonding/rte_eth_bond_args.c | 47 ++++ drivers/net/bonding/rte_eth_bond_flow.c | 1 + drivers/net/bonding/rte_eth_bond_flow.h | 22 ++ drivers/net/bonding/rte_eth_bond_pmd.c | 89 ++++++- drivers/net/bonding/version.map | 5 + lib/ethdev/ethdev_driver.h | 38 +++ 14 files changed, 781 insertions(+), 130 deletions(-) create mode 100644 drivers/net/bonding/rte_eth_bond_flow.h -- 2.39.1