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 58CB1426D6; Sat, 7 Oct 2023 03:35:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D85E4402A8; Sat, 7 Oct 2023 03:35:04 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2117.outbound.protection.outlook.com [40.107.94.117]) by mails.dpdk.org (Postfix) with ESMTP id 33DB3402A7 for ; Sat, 7 Oct 2023 03:35:03 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SBcYWLo9n2rbjjlJOiEHyTfM1ObzffckNuclEI9N7v6Ve78LoAXeBmwr0GCAFKtvBPrDw7bcjfqv7LBhHdHQ/exGoNWt06KPBK7Uck/7ezv4SgrSMHtkzc/5q4gqFNfyO7Agm/cIiRSMT5XL7gIzYCO4Brw/aNfWfiPHqq+p/HeBefpC7BIhQWi04Ib/+2X7bcPXAnxAw3NAQ43FbFM7shXjNsJlpFxk3JIInB3muE5OTllsYxWI7Vzz//UEeCAmTv+ssMi3sxwVDkj/s5BPENlil+b0wjhMFmhq7AoqvYU8ttlKBLIyhyDPsLWeFuZFUlsETkWu9rqkI3EVADXG/A== 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=LW/pfqZ/OfXEYXB3H4VXjXr9KysLy+C60brW6djbOfc=; b=BIpymCDnNNLwDEka08yCvlxPQbqPVNJO2hOSvScxaf7JmNM/s8YQbrvGdEIwyEJmuz9Vpl0Lo4HTwTEJ11To63tX4qtyP7aVgLWB7e7abBzJyTh9EknISr9qv/Z11y1nejCPjh4syf5aXREwUQR0SQvs9CZFDqG10Jq/ypeVUfNOoD29HmKOcu+7EZRG0+dFwRqd4wSc9GgDNKjX5H1p377anzBp/LnW3Lk4Y2rVLtaBmpwxlHOTHhP0tllF6FIZu7G+/O+DlTgXHO2n3lpoxgD/m4JgNi5nB8OBAgjnNS+DgcUOSiDtZ7uOdMjysGJXg9iVVvvEceKcqf+pobO7KQ== 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=LW/pfqZ/OfXEYXB3H4VXjXr9KysLy+C60brW6djbOfc=; b=Y52JI79oEqWv76fTVdKoHyNGLoWDJT+4+kymV24h8Aq4Jzv5yIs233cV/Np14YoJgYiyi8TuW6wMmNvVaZjxBpjmdofWv9iqm2CQOaf/oisUjfg9kYrS1lA33JFAOVdXUgyUEg/irdNudIq/Jth7883bMWOtKbdM2ugD/6pLu34= 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 BY3PR13MB4913.namprd13.prod.outlook.com (2603:10b6:a03:364::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.37; Sat, 7 Oct 2023 01:35:00 +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; Sat, 7 Oct 2023 01:34:59 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v2 0/8] Enhance the bond framework to support offload Date: Sat, 7 Oct 2023 09:34:32 +0800 Message-Id: <20231007013440.1309422-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20231005024012.1279810-1-chaoyong.he@corigine.com> References: <20231005024012.1279810-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PH8PR20CA0008.namprd20.prod.outlook.com (2603:10b6:510:23c::18) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BY3PR13MB4913:EE_ X-MS-Office365-Filtering-Correlation-Id: 6b0d06bf-4bcb-4937-5e9f-08dbc6d59e79 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L0R/nWnBEi9p0Vx+EX3lllIcbdHQLfvnV6UbYimedfu36lJTEclcwyL0h9x/QmlJi2q8tgjOINCo1dqcTnQfAd/ubY7TFEclryLoheF3gNVc7juWS6rVJQAbgOTiEX7mm695/anfHW2xi7fERQH9ybXO1uGHghyeQyIIq1zdpqYJD/aRriht2oDPT6TFreL+x77cJ+Z237zzotEtrHh656eP+1p0r83etSjsCjGjGPhGe2t2/mCgjoKum6YZXDvqDIyj3gcOlfEqn5cLXu3179FkMl6fa7RqIDEaEsoob43qvxLmwLcAMPhAqHPyajle1fKE17kqrYBVWydgoXDmqRo+uEya3UmvDBVds8A4zbvJg875/FHkqFrPeTSKB/1hsrccbDUY2jWyfZWWslLFo5wVCF7Jvqo7W9gI/6KmMJgs4QCphN2GB92iOPDC9Kd7dts0mLJeW1r0osByrdRGHZL8gddHHaVo1R+rkUbbZo00YMqm69i4C2dBQ5j9ljMJYgDFDGfWiPQX3QLDAbRfTMrOexoq7UmKcpLtuGpAU7ACVh/YdxGiKKFHcvZ0zUi/10E93jhCARbuS8Hevk9D68pjFiQi+V/LRTLPWt2STH1zPSROS9TE8K/iYgU/38Hc7rb23OmNzrrlYRSJZbR3MGW/jWM4nZvxpVJIBDsy8UE= 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)(136003)(396003)(366004)(376002)(346002)(39830400003)(230922051799003)(186009)(451199024)(1800799009)(64100799003)(2906002)(44832011)(8676002)(8936002)(5660300002)(4326008)(41300700001)(66946007)(316002)(6916009)(2616005)(66556008)(66476007)(6666004)(26005)(36756003)(52116002)(107886003)(1076003)(6512007)(6506007)(86362001)(38350700002)(478600001)(38100700002)(83380400001)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?gvHCHnyD9yh7njETr4R+Pe2Oy3nbnAzhj6vZeVMmGKNrYjuMepLPpHhMjclS?= =?us-ascii?Q?XtAuuHoJ+YKSstD+Gp28vTkdMXJRhonlusbsL15XkOdq8K3C3jFsNlLzdgMe?= =?us-ascii?Q?QQXM9728T7+4Qk5Pg4a1BDuCfoNKPfdhodqzHCJF4ktxtyZ5RUtk7nba4pzO?= =?us-ascii?Q?947DZPTtWTJC1a6j9HKITG3g8952Bf3m63h0m32x3c6GvwtpFSuADRF2mcjK?= =?us-ascii?Q?sWofr5qu3rTSy5BFhmCd+1DHm4Reyc7SuykU0QkRMZR9bJnjA3PNR+k8Xb1f?= =?us-ascii?Q?ji9TGipClTM3R6rC2/7KMVzUU/RDEC78Tgk6UBEn8W0X1Z77LLoqSxS3Jfox?= =?us-ascii?Q?8b4T0GzX+dGhyixDNuId+0q2ilN4hevJNaAj6NiNTTFo1iX7+iU+5i9zQIOH?= =?us-asc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ULcNha6fnX9qqi4zmJM?= =?us-ascii?Q?uc6mQj8DrdO6BoyW3DqUAo1v2Z0iIFaTy4u23Su3srO3LZYlyeWwEVvKVv1+?= =?us-ascii?Q?zZ3KWjHqMprGyqtMv+ffzHJW7yjl+A+h0X8CpfwwHwlr1mvFja0oignWFYRt?= =?us-ascii?Q?TpMXI7Rs13jQqg9N0XPSW4tuUwCW2547lQuhP4dGdoaTFEYNX/UuP1COFPYg?= =?us-ascii?Q?BwVmsMobDgHPX+Cg6AciPGmVwD/HH5xKKySn/YnVSuDZOVFMMXlqmUZVcC24?= =?us-ascii?Q?Vwq1SwGLdnd1TdV9aRElY3AReH4cgcAoPDJ+8rxngJ0mtHHDCXpqCNMQf0fO?= =?us-ascii?Q?tg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b0d06bf-4bcb-4937-5e9f-08dbc6d59e79 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2023 01:34:59.7013 (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: kipZYAd8dySZrcJcgAj07Tizc99CUak6lXMcquLI5Cvd8Ox1BDyAb4yRro0fFwF9AKLl0G48gAZRUlyTdMWAyCJqdR+ht/sQYRjbV5n+7eo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY3PR13MB4913 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. --- 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 | 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, 767 insertions(+), 130 deletions(-) create mode 100644 drivers/net/bonding/rte_eth_bond_flow.h -- 2.39.1