[v4,00/18] net/mlx5: HW steering PMD update
Message ID | 20221019162528.11045-1-suanmingm@nvidia.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E0024A09E5; Wed, 19 Oct 2022 18:25:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6EAE542BB1; Wed, 19 Oct 2022 18:25:57 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2043.outbound.protection.outlook.com [40.107.244.43]) by mails.dpdk.org (Postfix) with ESMTP id EA0C742B8E for <dev@dpdk.org>; Wed, 19 Oct 2022 18:25:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oJiGWWwgSwBK4pRKHn7i0soASyJVKdM5ezkRG8b9eaUkYUKcxk5njbAsQLVCqNecmwa+KHAX6X+eCHr9DpvDhcvcftYm2cQ3r12DyXsz+D/ci2l7vEZ/0E2Jki42my6vOI6IVYD/YdQljPRayyMl3kqcbkmjBdrNHQvbmaDFiYZp7LGYuyMSOVDTNUNtwjgKsvEfm6iKZrO48YPRpmwCdBuCq6uo5ayI5xOYY3jaJRREKfPIRTqvcuz/yvxp/cJ9+RRibqYaFxyXV2MUedMwizsKqWho9VS56vNEREZEfHOG97tTPejjt356slYdMnMPTkvpSL6I4T5xzu2Q0SeoiA== 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=AAG4y6/8MS0J9qTu3YAnWi6AlAGQE1LanKv1nSPYKoM=; b=SG0pAc8txCbC6zANz3a4cYbbFr9UhEfpd3l05auYxNopSMqkdwO8x+74Z9NbpKhvCEVNO+2EtiE4MLovELMxqPIsPO5gdzM5RkCT3wlBnBEZ0J6/j29VXZNrKR6Y+ML3F4zk0KkhCs9MdV2e3yU3S9JQisIOsoeOjAb4d1WIt0gbT1TJ4eRxBFDc3pUNzqrbWL4RpE3u1d+V9gdWzgWeQwsQmojiaR4PpNUYwjiE9dBHrPvaW0vOQIho1rHk0g/SdTycax0444LPGmHBotVzBI0KC43KqfVC8WEoz3kKshaUhG2stfauNof+9fTxljzYkMwlCcoHM0ehLPjL+8OK2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AAG4y6/8MS0J9qTu3YAnWi6AlAGQE1LanKv1nSPYKoM=; b=dA5Dsj918ngob64wVs0mDXbZDw6q+c0b00N5GL/i5R1IL8gXuJdNM0/GzRHELXFzx6CjVgaDeOmBWKJnH5Wbsk1slMAJU5gsU3bkfRIt66uOK1wp6kMWPTM4WDew8MGBZxa/BccesOEVygIWyd4HMY7l9GSixdsW/goMhD6UiEFZu4s+rVAxuei0MT0PsqvocGEh0UXOEd5jEMgPxZ0k96RU5HiRNd+ENWAVIk2U4ZBe/dAcBf1iTtJjfIIdJgKw0iuBQHXBfH5HSmmkvXMajkuQfwb616VHZ+KoraBgaRsLQq9ZVyDdDwMHB9lA6ySljnQs93KCJA1T4xzDab4LRw== Received: from MW4PR04CA0279.namprd04.prod.outlook.com (2603:10b6:303:89::14) by BL3PR12MB6571.namprd12.prod.outlook.com (2603:10b6:208:38e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.20; Wed, 19 Oct 2022 16:25:53 +0000 Received: from CO1NAM11FT022.eop-nam11.prod.protection.outlook.com (2603:10b6:303:89:cafe::96) by MW4PR04CA0279.outlook.office365.com (2603:10b6:303:89::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.34 via Frontend Transport; Wed, 19 Oct 2022 16:25:53 +0000 X-MS-Exchange-Authentication-Results: spf=none (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=nvidia.com; Received-SPF: None (protection.outlook.com: nvidia.com does not designate permitted sender hosts) Received: from mail.nvidia.com (216.228.117.160) by CO1NAM11FT022.mail.protection.outlook.com (10.13.175.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.16 via Frontend Transport; Wed, 19 Oct 2022 16:25:53 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Wed, 19 Oct 2022 09:25:43 -0700 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 19 Oct 2022 09:25:42 -0700 From: Suanming Mou <suanmingm@nvidia.com> To: CC: <dev@dpdk.org>, <rasland@nvidia.com>, <orika@nvidia.com> Subject: [PATCH v4 00/18] net/mlx5: HW steering PMD update Date: Wed, 19 Oct 2022 19:25:10 +0300 Message-ID: <20221019162528.11045-1-suanmingm@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20220923144334.27736-1-suanmingm@nvidia.com> References: <20220923144334.27736-1-suanmingm@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT022:EE_|BL3PR12MB6571:EE_ X-MS-Office365-Filtering-Correlation-Id: ecd9f753-4a64-4f72-2a04-08dab1ee97b3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s5cWysS5xrFzMA2h0dRKFLi34kcVvWp3x3Mg19/jVxx7+G3YCHGgy4fUyiQTDt3MtW/ERlXmCAqzbV5R1hnR9H61VNibMS3b9QzVmg3xu35tA7yg+wEKrnmm2f2eTfmusfiriATb3g4brlhyD1CR7klWUeSmSknTXaujEGoTefte6DvDIOMtuIallQJBKEJqC995dzS6sNxxzyJBvKteTocq4gia7Y93x4C/3r6d7zoJLdsGDzxpaR/3jte2rWNpNDFL6r5KKg0O3u4wvWGw6PvDfi4oChLIhF0LYT8tm2l7fbaVif7tcActSOs01fPlY4iR8oJ1LLzM+4affioZNSN7LrwSRxneJvI+JxtPx/0jH/XeKvyqLGLQuFIp+2RaLFNeDhd2sY1tUs1gzjGQBCFkMBBLjvAj9bZ+uckHvd5011vlFGdUZV+AMSTlC6OGVppzc+F+PC10AFW93fLNC8boq1NLwvGTxR2c4DYH3RWOrTnmLGwGtih2Kn+d6dvGiR7gvRmB2QXnxm9YV4WtJFacz/nfNc9H3c6wTSdAi8FpwnJpopu5zn975VCvyOsfVkma1ciLJGtF8LK7DIDEiAE/zr8HJ3Ih/JR74vC/Z3XMciZon6nxn4uFc9JJmb/OzqHYY9+Njddk60BTeKZTVHRLy7uZ9UeiuH0kUGAWc1v5/qC+3mHnWj1AJ99+lidlfugg/N+Qtk8pphOQgJhhuKvi36U9ahqqj0OgAb0p4Cx7H7nzmpdwCF1sJ292Us0ZuzYpq1d6oM3eVVrzJ55YmNB2drxcynZfm1QnZK5722AfPnreYjkxnAdjbyhL3zHh7RNavuQF/l7mr5kYaNEHGfU6XHhrjB6PvAAo86qp8HF77p7Hnb5zfyLtUHiTl7OR X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230022)(4636009)(376002)(346002)(396003)(39860400002)(136003)(451199015)(46966006)(36840700001)(40470700004)(426003)(54906003)(16526019)(336012)(1076003)(186003)(7636003)(356005)(83380400001)(47076005)(5660300002)(86362001)(36860700001)(2616005)(82740400003)(2906002)(4326008)(15650500001)(8936002)(55016003)(40480700001)(107886003)(40460700003)(109986005)(8676002)(966005)(6286002)(26005)(478600001)(7696005)(316002)(41300700001)(70586007)(70206006)(6666004)(82310400005)(36756003)(266003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2022 16:25:53.0843 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ecd9f753-4a64-4f72-2a04-08dab1ee97b3 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT022.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6571 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Message
Suanming Mou
Oct. 19, 2022, 4:25 p.m. UTC
The skeleton of mlx5 HW steering(HWS) has been updated into upstream for pretty a long time, but not updated anymore due to missing of the low-level steering layer code. Luckily, better late than never, the steering layer finnaly comes[1]. This series will add more features to the existing PMD code: - FDB and metadata copy. - Modify field. - Meter color. - Counter. - Aging. - Action template pre-parser optimization. - Connection tracking. Some features such as meter/aging/ct touches the public API, and public API changes have been sent to ML much earily in other threads in order not to be swallowed by this big series. The dpends patches as below: [1]https://inbox.dpdk.org/dev/20220922190345.394-1-valex@nvidia.com/ --- v4: - Disable aging due to the flow age API change still in progress. https://patches.dpdk.org/project/dpdk/cover/20221019144904.2543586-1-michaelba@nvidia.com/ - Add control flow for HWS. v3: - Fixed flow can't be aged out. - Fix error not be filled properly while table creat failed. - Remove transfer_mode in flow attributes before ethdev layer applied. https://patches.dpdk.org/project/dpdk/patch/20220928092425.68214-1-rongweil@nvidia.com/ v2: - Remove the rte_flow patches as they will be integrated in other thread. - Fix compilation issues. - Make the patches be better organized. *** BLURB HERE *** Alexander Kozyrev (2): net/mlx5: add HW steering meter action net/mlx5: implement METER MARK indirect action for HWS Bing Zhao (1): net/mlx5: add extended metadata mode for hardware steering Dariusz Sosnowski (5): net/mlx5: add HW steering port action net/mlx5: support DR action template API net/mlx5: support device control for E-Switch default rule net/mlx5: support device control of representor matching net/mlx5: create control flow rules with HWS Gregory Etelson (2): net/mlx5: add HW steering VLAN push, pop and VID modify flow actions net/mlx5: support flow integrity in HWS group 0 Michael Baum (1): net/mlx5: add HWS AGE action support Suanming Mou (6): net/mlx5: fix invalid flow attributes net/mlx5: fix IPv6 and TCP RSS hash fields net/mlx5: add shared header reformat support net/mlx5: add modify field hws support net/mlx5: add HW steering connection tracking support net/mlx5: add async action push and pull support Xiaoyu Min (1): net/mlx5: add HW steering counter action doc/guides/nics/mlx5.rst | 39 + drivers/common/mlx5/mlx5_devx_cmds.c | 50 + drivers/common/mlx5/mlx5_devx_cmds.h | 27 + drivers/common/mlx5/mlx5_prm.h | 22 +- drivers/common/mlx5/version.map | 1 + drivers/net/mlx5/linux/mlx5_os.c | 78 +- drivers/net/mlx5/meson.build | 1 + drivers/net/mlx5/mlx5.c | 126 +- drivers/net/mlx5/mlx5.h | 322 +- drivers/net/mlx5/mlx5_defs.h | 5 + drivers/net/mlx5/mlx5_flow.c | 409 +- drivers/net/mlx5/mlx5_flow.h | 335 +- drivers/net/mlx5/mlx5_flow_aso.c | 797 ++- drivers/net/mlx5/mlx5_flow_dv.c | 1128 ++-- drivers/net/mlx5/mlx5_flow_hw.c | 8789 +++++++++++++++++++++++--- drivers/net/mlx5/mlx5_flow_meter.c | 776 ++- drivers/net/mlx5/mlx5_flow_verbs.c | 8 +- drivers/net/mlx5/mlx5_hws_cnt.c | 1247 ++++ drivers/net/mlx5/mlx5_hws_cnt.h | 703 ++ drivers/net/mlx5/mlx5_rxq.c | 3 +- drivers/net/mlx5/mlx5_trigger.c | 272 +- drivers/net/mlx5/mlx5_tx.h | 1 + drivers/net/mlx5/mlx5_txq.c | 47 + drivers/net/mlx5/mlx5_utils.h | 10 +- drivers/net/mlx5/rte_pmd_mlx5.h | 17 + drivers/net/mlx5/version.map | 1 + 26 files changed, 13576 insertions(+), 1638 deletions(-) create mode 100644 drivers/net/mlx5/mlx5_hws_cnt.c create mode 100644 drivers/net/mlx5/mlx5_hws_cnt.h