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 844DF43196; Wed, 18 Oct 2023 09:48:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 460B540261; Wed, 18 Oct 2023 09:48:47 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2104.outbound.protection.outlook.com [40.107.223.104]) by mails.dpdk.org (Postfix) with ESMTP id E50A74025F for ; Wed, 18 Oct 2023 09:48:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k1eEWHhdVWzopsI9W7sN2lpHUY8ab0uyrOaskrbrI4DS503CNJftfGp9esLB5SRgNmqoujECdIWFuIja4oE5HDE2x1XJbwS+hRGbUfdkAYo1XXg6F6CiI3KUIrFHpOWkWHmbVnHrTbyLHIPCcb+eUR1h6KyMIGAx8ipbzqqARu6Bd5l7g/D0e8LHEpLsyYvGz8Gc7lxVVSZdgzNwJ5+ROGRXrtVV9CRVD5UGybaqOMlWaiAmkfXL+QOkU0CiXzwoo28qNySSxqYpYMH78eH/dQ6T7+T4D6lvaAWX+IY+YsRqvvjiqitbmoPqqtr1/BG0JELitGUrHPbufK7CDMdc/g== 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=h5l8SRovZffa7KTd+ZaHnEDF5p/owysByoJpQT5zx88=; b=XQ/5UHiyFq28KRTZoY5VVesy/0W9UnF3iKfxgmB3atQwPMFYCVvHWomln1xZirARfCUvDrWEKJtL0mTJhrS7RmTwb5M5FZdyhGvOqOJe4vxCFllj1yTeb4II/IUCHWUKawGLm2VDN5M1ddFecyQTEmukUPAbvMpa1Pzr7fAqe04B2vPc8g36JP42h4FvBa5+y3o725V3YEE5iTm4ASwcg8Gje57HsJylFcCGY7mVHBNjSigAfM0IST5B/VLZfyStgnIrztKqglacrdhVOUZx4YECJEcb9JAK9mLreP0XKBPy+3hl6YSTmcTARS/qtk0HzNycQIfmkcfMLerE8BlSXA== 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=h5l8SRovZffa7KTd+ZaHnEDF5p/owysByoJpQT5zx88=; b=UfhxezDmt2WjY2FKydgAXngHQRTRDCdbAe+j0DIi8iiJKVDTBz2SfO0MfaKa8myd+H9jhEyUgIJO6x5OOVxbBuYDmDgyxcTDtUcx8cbb/vA9i+TmvgGpKiPFNuB/OY7eTVSq4jYP55Gd1MPWeMYyTN3ecfv9+1ePq5qCNVGXc0s= 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 CO6PR13MB5372.namprd13.prod.outlook.com (2603:10b6:303:14f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.34; Wed, 18 Oct 2023 07:48:43 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::142e:d47c:7320:8a9d]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::142e:d47c:7320:8a9d%4]) with mapi id 15.20.6907.021; Wed, 18 Oct 2023 07:48:42 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v4 0/6] Enhance the bond framework to support offload Date: Wed, 18 Oct 2023 15:48:15 +0800 Message-Id: <20231018074821.1908906-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20231008015041.1551165-1-chaoyong.he@corigine.com> References: <20231008015041.1551165-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0019.apcprd02.prod.outlook.com (2603:1096:4:195::13) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|CO6PR13MB5372:EE_ X-MS-Office365-Filtering-Correlation-Id: efb4b03c-8a1b-4cd9-6cd6-08dbcfaea638 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6xkrZFdPXx0pWeTUlhlnPV7swFRRBkc6FCfO47SDzIYQ8+l5qgoW3lxr5Wp3B8I8kVerN0aGwYCJFKnLCyuoLozPZSaal4DAhY67sF8IyQxJ5qqlEbfzNqKUr4u9fcVE5u/TQZ37iDgHLpQWD2DqZdhnMPbnX9PgvuNVD/YaWLdGs9ER/JY+Pky1NSWlPsYKkFjnyswlWk2MdNIxQUqA7qZCqqytZb1Ul8PXrWeGekRz1afRgR0mcbkHPsWVzqFARdmboOVoQX2pc/Ix+kzgm435rnwpyNenGbndss54mvRFedVuYDmKEvHadLFB+GUqH+Osbo1jNiYYb5JzANE1Hf1utRqpNvednUvKOuPk0y8q5ZK8QfESQYR4Zylm9BILp6NSDqb3lTxpcx34szSJdpFKU6JMD5so9KsKnTDRjWdZpBDXeAFPV6TCZiA2Ky8pXddmSF04gDBF/UrjjudjytlAWmrLGp3lGh7YqaudXg5WzPi5Juo5XSuO1pCcK9nyZFhwMsTnf7Gkegfb9o0iBJxuAmHeGR659v0s1aybBDNv8yLls08tEVtqSgiV8OZ83F11Mc40XeBDm5rrJlQmThtCpPAh9wq2OXbbvX1aYbHISJv0nRZz0IIYPYC7C0UogTN0CPwosOEHsfBlI1MR39QnXLb0V8aBG8nuubuYfxI= 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)(396003)(39840400004)(346002)(366004)(376002)(136003)(230922051799003)(64100799003)(1800799009)(451199024)(186009)(41300700001)(66946007)(26005)(478600001)(66476007)(6916009)(66556008)(6486002)(6666004)(52116002)(6512007)(1076003)(107886003)(44832011)(6506007)(316002)(2616005)(8676002)(4326008)(2906002)(5660300002)(8936002)(36756003)(38350700005)(83380400001)(38100700002)(86362001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?5Y0cZ711BuCJQmEwM0ExonNUhvPdLXAZlsrxQo7mvVZrLOXh67XoeSzYRb5r?= =?us-ascii?Q?8/AKjITclR1SM3vZDZzCUfAMZSRCB93FwBFzcn/BMzsoHyTCuuM9NE0IVP2r?= =?us-ascii?Q?cGJALSs6X/mQFC6s6h10Ek7hv+gt6fi8NZfR8Wda+rF6wcVXjuz4QqRL+c/L?= =?us-ascii?Q?d3pdT+YoLy42Hdc3p46EXZbnGicipthxwMMVj5zSbzpw1Qq1miTLtJwl+wiB?= =?us-ascii?Q?i5w/FQqmXOshFABPeBDsCy3puyyoFg+XvPQgltns2ZCrLiGq8oVtomSNe7p6?= =?us-ascii?Q?NPpLz7q6yLB7CPbF2K6uQd3nWVYiXDfP/06ZyBbJkmWP3AFqWDzSKOcFEj5j?= =?us-ascii?Q?//oHYgqzyX4dk8qcGWKUZt82VQTryC3QWqzQtCjQqg0KJx7GmRC64SxauTy1?= =?us-ascii?Q?+7I1Pek9QTgvAE1NO6lROCOIJ5WtTzUnZlh9rDNg/izMlue+EpbhaYt0LClU?= =?us-ascii?Q?XKWFidDwh2D/oWfeKgOkyiuSRASjHea1VwD/pDCRburZ9k5toZvxGqBCzSFH?= =?us-ascii?Q?7f7PJahHuF8HbrPhYqbnwmT8AKop0amQUu58fODG1AgE/2WgujJzLd3DqqC5?= =?us-ascii?Q?0Mq9fdxQXk367kfgCEzKh5GMKIq1Mdz2r2/NqeMLM5+87IHUYGtddKhY7VRz?= =?us-ascii?Q?h3+i1eiKXwLRZhzRweKP4WBSiM0EZOhDwE0cyCsk6e3y69Z2ifTlu96jPTBG?= =?us-ascii?Q?Oy1xncdCg9dXP8wnPajPHXTyyiNyTfgxWyngxsqNo0rRbJXpTAy/AYpnqGCi?= =?us-ascii?Q?3sNnTllXfMTIAmUrG1J399/yLW3w0NaeRddgX627OHD2kauYxupHqpVUzYGn?= =?us-ascii?Q?Zy3elVTseHn76O0rQfDNznr5+PTV3jYR+m+f13fdRdFzFqicGAmBHEATTEFo?= =?us-ascii?Q?SSyioSQ82wsugrrQAiosKa3MM5TpDQl287IobsnnzlZHvlrW2DguGYcysFhS?= =?us-ascii?Q?7YsvqAUA6/DsWIsD9QeskcQ0jn8Xn6jaBiCYk4/Agn1paENtP5EABN0bOVw/?= =?us-ascii?Q?vPde39kC5sEdCpZjHad8dIXif370n7OiWkPyk27sLuTgAJrkY6+2aVIQpu0U?= =?us-ascii?Q?w2LukqPCtgCf6kJhypK7eNz597rp/m3VhpbkpraiJ7rruHhCgwviMyPNeGA7?= =?us-ascii?Q?7YbZLs9CtX//ARwZdcBrib2IAjOh9KdAGhOOnmE4K8y2TacZvup568LVLBcg?= =?us-ascii?Q?pUhgVa7ktYtvvsTNY6OscR5taz5Ve3I/IQ/KoU/RLDg+RZqBSYU3CuEtPL2t?= =?us-ascii?Q?PSRL2e/2oHSqcua95+NuTga3R7ravRDf6P/o6w8Ob9O+BjXswOWJVub6/sS9?= =?us-ascii?Q?Ct8GdNznFfqj44FQP1+JSnXMtKMJd2K5cedP1F4KvHGsfbnQQK9zNOj1MhZj?= =?us-ascii?Q?adbUlaCb/3jOTR56xI6sPeKYjKBYkGIOFyCxuqQKjF8Zdb/isFTkmZcA9qwr?= =?us-ascii?Q?vMwM0iMaXVPl9YP/Z1OldwuKFGrjnO4XemGCENsXZ78o+UgDmXO8+cwM3oeb?= =?us-ascii?Q?H3wl3YPavpVxmxsHz1dAQXFk6T0DzCyoo1IhUpMSnvLkjbmimy8wrq9BW6ih?= =?us-ascii?Q?bhirmYFlK2F9tLyZUlBYuVZ1uM2ubdP0fYBR2ltx5QcL9vhuGk4KDK0L1F3a?= =?us-ascii?Q?xg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: efb4b03c-8a1b-4cd9-6cd6-08dbcfaea638 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2023 07:48:42.5007 (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: H/JMEArlBPb+b7I8GEUq4kDnRX7bFOJ+f5NYWJhUwgZcS3xl9VLgYrP/ZdTl1AYmh7M1sCaDb8+ZIJaHbzpsvcyKneVas+Emk4M/MfFfzRY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR13MB5372 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. v4: * Drop two commits not necessary for this series. * Modify some logic as the review comments from reviewers. --- Long Wu (6): ethdev: add member notification for bonding port ethdev: add API to get hardware creation of bonding port net/bonding: add bonding port arguments net/bonding: support add port by data name 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_private.h | 11 ++ drivers/net/bonding/rte_eth_bond.h | 88 ++++++++++++ drivers/net/bonding/rte_eth_bond_api.c | 121 +++++++++++++++++ drivers/net/bonding/rte_eth_bond_args.c | 47 +++++++ drivers/net/bonding/rte_eth_bond_pmd.c | 93 ++++++++++++- drivers/net/bonding/version.map | 5 + lib/ethdev/ethdev_driver.h | 38 ++++++ 9 files changed, 546 insertions(+), 4 deletions(-) -- 2.39.1