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 CD967426E6; Sun, 8 Oct 2023 03:51:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BAAD5402ED; Sun, 8 Oct 2023 03:51:30 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2107.outbound.protection.outlook.com [40.107.237.107]) by mails.dpdk.org (Postfix) with ESMTP id 61751402E7 for ; Sun, 8 Oct 2023 03:51:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jRrNbC7/NW0Y8jzt7r5zH0w1OF10ID8npqM51/AxEF8J6jFRFP2uV6sSPf4ahRw0epuhUa+ghyByu1IPpnuV7ryR9ZKl562B4IxGc7tGIPxhXYLPcadYz+tFEwtxPaT+h8LLeJkgOOJeJID1PxyTVofz3f2UX8Miorbs16zzsmfHGVKzyLELhw7YdDmdWjHA0AqgkbYlSFtY+UlwalUJrBP/u3yaCQ01a88SG5t7dCLAoPVJ6hAnudju0VQd8yrk6oo8sgWr9jFeBYKAU9EpMpC1DiWiNuazz7xql8iaz67PLaulfAevHoE+7idwSdg50bFJpFQZDQ7cOgBN7aIi8w== 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=+XOcS1FhmDWaArGl+iuBXKaUynRzLxXH/QvXiddsjZo=; b=UxliSXbGAsszvFM/heh7ZJVE5EBmNb+mhM+tmizYeH7L/aoebm/YLJv118Rhc3RIN0X7/WxCTWYpxj6ucY4tu36g2sPYZ7BA9y5+Ebw7r7IIDMWzBZjseU5Fh7FP2bGjW/JPgwtmkjf5PzQVQB3ne/bIwxWqzmLn2ahqG+/3q1KxemnQ4J4pcxE+Sh/LYuzWVX3+7rNMV0rrheaB9oBs9ImGbvRpZFS4wsH8QQjRbmv8RZqtiLBDwP5d3bZzC6g+q8aA1q202UKh0mF7gKOYBpECg/0iwIjMUwT1naBCC2f/43vDPL9zAS9b7xioTYBHs0af0d0Aa+QKsEwhyFiCAQ== 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=+XOcS1FhmDWaArGl+iuBXKaUynRzLxXH/QvXiddsjZo=; b=J0w94zfHzMyDhDivuleEVaAus4HUEFLGOCZ0X20j70SbExmOMhYw+xRa//XCzMSGuT0lu5Oq/GgoxPqy74IBv7AF+Huf0f7GPSaocWEaeIpFCPI9of6fVddYMn0MsUwGGf+6thB/zj8GNcKoXYXBZQ+o2IF1VuaK1LHpUuIBw9U= 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 BLAPR13MB4579.namprd13.prod.outlook.com (2603:10b6:208:327::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.41; Sun, 8 Oct 2023 01:51:25 +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; Sun, 8 Oct 2023 01:51:25 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v3 0/8] Enhance the bond framework to support offload Date: Sun, 8 Oct 2023 09:50:33 +0800 Message-Id: <20231008015041.1551165-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20231007013440.1309422-1-chaoyong.he@corigine.com> References: <20231007013440.1309422-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0173.namprd05.prod.outlook.com (2603:10b6:a03:339::28) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BLAPR13MB4579:EE_ X-MS-Office365-Filtering-Correlation-Id: 5dcf30c5-cb19-474c-5b55-08dbc7a1148e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Zotwpka1ekGvqdBa84viXj9RzIcwMJRcJ85AplgHz8wdzvHiRS4GzEMZwxz3AO5rfmlpTf8qTVcXr635WmIaAvifEBvnPQIPGrl1nVT6l9GL9spxx0Ee8GwlReRsg5rT9kXyMS78Uf+ph/MTsTnDQNwqFQJHV+I47Z3hgBeqeXPECsAStcKjNjKnLZTzrPf7EUjgGt5m0UB49AHQh2it2rD1xUBlCVtHG5Fy6vM02Fbf6e3Iwy5tFYgi/XowCy6aZVCLImGEoSoQPFVVSZ7OwWRYrhbjzljzTWa1rNI9hq14WjIAlZ02e5eCc/Uarmmx9fkFJgQLt15pouFRNuLiY2/q4GbR+iDBN1cBJLZ9kEgyM+zAO2WINFv5zEW/V3GtV7VI0/MC9iHbxwxMfB9IoqENKMGirv81ZTWgjp4kqU7HWCDivFVlroxW0HTG7A5F0kCsd0bRKoFe32MNb9fAfTSS8Gg3QlnqOOlBySi61n1YY5CHysHkD1H0JjpWrO/b6wGFZ6Idok4hBTwhbZkRB3SE/9W5Og8y9S43qaTXXPzpsxGgWM8wpqwqe5H6YNpmhXVFNAjYUX5CgtG0yEawrrVy0x9K7nnqY3W+ZJIe+A6XWmTio97dl20JUAnl3uqRkNDYPrjl6ea2LeowrnAKPi//dYTxwgN0UO6Dcsua/2g= 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)(39830400003)(376002)(396003)(366004)(136003)(346002)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(41300700001)(1076003)(107886003)(2616005)(316002)(6916009)(66556008)(66946007)(66476007)(36756003)(5660300002)(44832011)(83380400001)(38350700002)(38100700002)(86362001)(2906002)(26005)(8676002)(8936002)(4326008)(478600001)(6666004)(6486002)(6506007)(52116002)(6512007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?peTTgrkHErrDd7GrGvodfIZmB/6WkWdEKuoiCaPxEJk90eqTVWfSCIT+pyBz?= =?us-ascii?Q?CfcHEgW67a8IQ4XZ6b4oAN1TX3BBHtiSBdTOcBBEsdMm9wxjMlM+jWs5ocOF?= =?us-ascii?Q?tsSbnajoc7sZHnnLT2cuFpIoMYwcgsrYxYufYAtNMOkRZtuf3hpNUsorHitr?= =?us-ascii?Q?HSv+pc6FyNNHJLuVUCVmE+hS+t3iuBQoVoXMfsZ9hStuRIxsXHtxc+lNGcdw?= =?us-ascii?Q?TaYhlN3dP3INUOWLGF8+8Y4XaAWeKh911bqpKDt9G127C+0nK36Uc5pgOv2m?= =?us-ascii?Q?RbSvShruD3iX/ZZEucWVeCoe77kA+EITvLOMbe6fpMbEV0eLHNgeb4GZYTKB?= =?us-ascii?Q?Fug/49Pql7bfIO7Rgm5iU61BqszcppX4tD2sFe17RBoU4WFRM6Q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gls9jTZurL9Y0e3EnuwQnIIcPyeRKOMNn?= =?us-ascii?Q?TusWGl8nRchoT/o3yOV0Rqzb49X3+VbZeH2NU5BV8ld9pNEhmhkY5Qo+n4OW?= =?us-ascii?Q?UFA1vIMES4Xnwux8SKrigHQk6F1uHQ5jK0h57Z2BMzSTGnUOrNtYip15/zze?= =?us-ascii?Q?a4jz3Q2nHbuPaRwSF5INnzHC9KfRrnXrxV95yVLwGG8Xnoj/GcMlDlSTjDnN?= =?us-ascii?Q?d7+m9g1dtzToKtw9ik8aGafS0aPcEodk5efSQ0hTizbvdMo+C3oRgL3fojoP?= =?us-ascii?Q?CjKONAjNaDoeMYaq5W6dKxFwVbQkti8B99iUjgVtnZEHiAhaoi7oQbRr1Sym?= =?us-ascii?Q?qQ=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5dcf30c5-cb19-474c-5b55-08dbc7a1148e X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2023 01:51:25.4774 (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: mLwmMcSlUeOJ5xlYzOSD7F866Naew+4b7aQOGpRBLm7WWU3f5oKcCyIM30sEind1EqUvOqXFh/uKbyGDcB/dO2CdA8vNpq7mW4fgCg3I3EY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR13MB4579 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. --- v2: * Fix compile error on github-robot by removing the redundancy function declaration in the header file. v3: * Use the hole in the structure for the new added flag data field. --- 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 | 24 +- drivers/net/bonding/rte_eth_bond.h | 238 +++++++++++++----- 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, 766 insertions(+), 130 deletions(-) create mode 100644 drivers/net/bonding/rte_eth_bond_flow.h -- 2.39.1