From patchwork Fri Nov 17 07:11:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louis Peens X-Patchwork-Id: 13458402 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=corigine.onmicrosoft.com header.i=@corigine.onmicrosoft.com header.b="NqiIaPAG" Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2107.outbound.protection.outlook.com [40.107.244.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C93BF194 for ; Thu, 16 Nov 2023 23:11:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XPGrtvUDmDbP5BmVsOD1ceZZT04lLXaw21T2azp0X+hk5Z2iH8o3MuGBZ7r+P5NHnXUVL8IGmkq0Sltl2rwqKCJaFzhw4kUsMVQApKZerKjEzJg3YT24wOrFXjRucvWF6adjTogOjISCNQvNKqFNwPhnwuR85euDpYErg2LcxVG8K2UJcSMP/qd0kC5jIEdZnZ35pFtVV+YijeV780mvw2duDTW4hqQOLraNUC4JBzH27zDBL8dzA/psIEQ9y8VKKL+KgEb1tc70PHUU0jh127oJcUNCXavgEz0qwfUY2VJ1QYBBYmGfCtBzQ1/Si+99aTIeIoPWMmVPbaaq3WXkpQ== 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=oW7FpLMEcBrRhTEU2hlwF1pY0EQhyhgrsVjq5aTdHto=; b=S3Uxime1ZPG0S4R4PDpyBdP8QltINZHBRC74n/7smUMNXBKAGrc9qKhhhdff/rDzmfzejPACdOH2VdYYUnepaVojw5PK0CabFq+RUKLvYrdtLWDqE6IMA+beN3dEQJno1vHAoaFUTYjX5yMWy06AWIAAfC2uIqrTOuTkvGTu9/WI5xea6+WeHgRYSodfbIq4AvaFJKQiApZrmIW4A035ipOkbyLRlKxc7GsWYGKIirnHu9GYNSjVRQrxvzxX0ZdOL6U1xhH8pINm7V0eTXzGmCPfL3LpqJvp7urhsFiblp00JlwcXLs2l1n6U72gEI5r/rnsUJdnxPXjql0jU3diuA== 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=oW7FpLMEcBrRhTEU2hlwF1pY0EQhyhgrsVjq5aTdHto=; b=NqiIaPAGbaVxHtVnG9yC7YamSiukabQR4iZMzPnBeGm7yYVZNVxth6YSBxFDHzFKUqNMum9ehYj6cT3Q5U/x12Mj3V9hz0D6b/rBIKLqLP3+pcUBbMfN6kI0BeVzRXIdqMssPYHhBTcJeyhPmxjiYdlKbyD901VDqQbLKcWGSf0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from BL0PR13MB4403.namprd13.prod.outlook.com (2603:10b6:208:1c4::8) by CH2PR13MB4553.namprd13.prod.outlook.com (2603:10b6:610:6c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.21; Fri, 17 Nov 2023 07:11:39 +0000 Received: from BL0PR13MB4403.namprd13.prod.outlook.com ([fe80::d3c0:fa39:cb9e:a536]) by BL0PR13MB4403.namprd13.prod.outlook.com ([fe80::d3c0:fa39:cb9e:a536%7]) with mapi id 15.20.7002.022; Fri, 17 Nov 2023 07:11:39 +0000 From: Louis Peens To: David Miller , Jakub Kicinski , Paolo Abeni Cc: Yinjun Zhang , netdev@vger.kernel.org, oss-drivers@corigine.com Subject: [PATCH net-next 0/2] nfp: add flow-steering support Date: Fri, 17 Nov 2023 09:11:12 +0200 Message-Id: <20231117071114.10667-1-louis.peens@corigine.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: JNAP275CA0058.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:4f::6) To BL0PR13MB4403.namprd13.prod.outlook.com (2603:10b6:208:1c4::8) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL0PR13MB4403:EE_|CH2PR13MB4553:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e6ab267-2681-4fee-377f-08dbe73c7124 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 20N/RDKR8p8Ze/BTtSTebfNaSsKaBDx3/V2KpwtnnoaWWRDUswjj2Vp6Nv7BkzVsOF/nvVgM+GB+SK5wP37Mobi+OrsbrOYKg6IGtg/sIOC4SlV8BpjBMS65KgmtddqmKaB5t4mbfZurnAPas16thEWJXRHdGvlVbhZGDBycxA7jO8loEUsjxSgVX8Bbd6edjSKE4BMiyRlcwl/Ie7YlZCu0Ol7/KCN5/UmsbPUfvsvo3P77x37B3rfohzurbltu6SHSzdvtrEzOoXba6x2Of201FsVi//umy83oooQLh80Roz8H1nVPGN7lOTITMbQkMQ3dBh/MCsjXaO2eLib8GIpn8xnFOifMXyH0EJnDiYSaMX6QtxVilX+RTMiQpdNFCbu4quiD1emKMCVIOzpwJQM5MGH+c97U79cacHGHYEqg1fVJ+6dTt08Mr/1LGDV+m9w7dpKn/qffhIQiJkwGnqVZukuJ9hQ8Lu8U37SVk4aPukdPeZq06AN7EDmzJrWzvjoMyO4iMmrQ+n80jD10koTlOEztmHK5JwM2jbhJ4RR5J3W65imesIfvT8EJ2v+RGr1FR7Xe79L61pgzwm9toWOBogs/x8zUuiAO/nz21RMUS10vQ0nGer5JAonEfDAOSnoDrGBCLyOlbyWmLZDFWjHeVHCaoDyU/J1MQtJlre8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR13MB4403.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(366004)(396003)(346002)(136003)(376002)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(66946007)(66476007)(66556008)(110136005)(316002)(2616005)(26005)(107886003)(1076003)(478600001)(38350700005)(6666004)(6506007)(6512007)(6486002)(36756003)(52116002)(38100700002)(5660300002)(44832011)(2906002)(4744005)(41300700001)(8676002)(86362001)(4326008)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: D64wRUi5Sx6adZNTpIG9q/ZTxP8F1Eeo+/x/ByoIw5dDoxIjsI4dLT+Kq9l3amYHQmNnzcvxcwHy0eYY/lTsLu89K7SOyXd+hqQW85IZXIugbySGc0ci6SyvIDJeHSaDZl6uAeGCDLIzH3dbAbTM3+jM8vmmGD9faRZOPHDnk0Ug8MwWwm/8kkxYPGRhLdQM6vsD6MLQLwRFrrBF85H5409yp+7e2oN1XlAhtcMwh+N5rvBycfl5uVQGqdq4hGQ9R+9CRdWFT8Vc5l9+SVwvzeQSkjgWt9r71WVi7LEw5+ILLziO+PeKkOVcws/q+dWrhSN93RUZaNhaXUFSVXWsCDBlKl+Gk3na6jVaEOR+xMBLmX9JZnn6XXlbe3SO3jks/NZJ8qayGlIIMJ152c11Bj/Uqz9CIOciC/NKg2IgkEiFncCE202xDvJ7qv/CmhQOoFKl8ESnk5LPv52uW9WoDKQZvOxSB26rm+InOiN8PTRf6KS8gLU/kG0ojpK5b2dyb34OSOFVXLvHRgunCYOSmhBgvgv4BGrkpIv83mrh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rg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e6ab267-2681-4fee-377f-08dbe73c7124 X-MS-Exchange-CrossTenant-AuthSource: BL0PR13MB4403.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2023 07:11:38.9265 (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: rpT54WhJo7SNXD3TiFY8h+W/uaJoLLsI0x+6pHlUc1vZ10MlYtulI0eLhS0pd5S8qB64IKT8zFUGSrOOiE/c/HmuqGd3G1m2i8Nx1XPkKCI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB4553 X-Patchwork-Delegate: kuba@kernel.org This short series adds flow steering support for the nfp driver. The first patch adds the part to communicate with ethtool but stubs out the HW offload parts. The second patch implements the HW communication and offloads flow steering. After this series the user can now use 'ethtool -N/-n' to configure and display rx classification rules. Yinjun Zhang (2): nfp: add ethtool flow steering callbacks nfp: offload flow steering to the nfp drivers/net/ethernet/netronome/nfp/nfp_net.h | 36 ++ .../ethernet/netronome/nfp/nfp_net_common.c | 183 +++++++++ .../net/ethernet/netronome/nfp/nfp_net_ctrl.h | 15 + .../ethernet/netronome/nfp/nfp_net_ethtool.c | 369 ++++++++++++++++++ 4 files changed, 603 insertions(+)