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 DB8D7A00C2; Wed, 28 Sep 2022 05:32:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6552942825; Wed, 28 Sep 2022 05:32:06 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2048.outbound.protection.outlook.com [40.107.223.48]) by mails.dpdk.org (Postfix) with ESMTP id B615F41133 for ; Wed, 28 Sep 2022 05:32:03 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gZ4UyYAeMkJ7AeLjcGcnEFCuR2dDHxEZQFqMMXsJQKIyZeMfVbIAMzRHqvxhMOl+JAonMEgTIxrHQaANdHzSKPuXC3lE22XhA/iMPhgUif0YDxgEykmJu521ZPeRCvG17GzOP67EfUWdCbABfSNI+WW/GbdpKzXXK6BJhZU+C2qGV4gbP6pRjkeV/91qIds7ku9FDP0jmJL4AI/fr/47Z9z6VfqeO82nG5/tAqQN7PAkj1oBYNDV8nxGoa+aZN8hf5gytgHHfElaKASB5TMisMeXopGFeSoA3+f7k70aSoAag6wiLAUchY7s9KzPTHJugQ3a6RaZ20c8eBNjkb0LeA== 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=SilxxQmtM/J+BfdZgXDvMwHWpRSL+XsCjr/Fzp6/f/k=; b=iQE43DLxLmvURiHch/xhU/LWSxLKRbr88AjajXFSh9rAiOy4h0sw89IQ3oQ4odw3aDmpc9DzToxufWjbvLvbGiJeqJYFUnnGP9NHY8g1iYqK64vhMm9PM5osVpt3pbzmADsVaJG6w/pzhUWCEel/G6nLsT996FpZEqKc/RA2dc4v6ytpujcRAFeupt4llNmsNMSyM+d1Vc4UXxW4IuBVucKDNS6vWa3gsFwY5J3TZf4LMYDV1QTlssl4w4/W7FQjuXYwL7AyvavXoKdV94PrhqZtRAojlwfiGnN21PCwMPMZF0LiK5DEHVIdQA9MK+YfeOeXutiKA5BG9as3fh9eKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none 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=SilxxQmtM/J+BfdZgXDvMwHWpRSL+XsCjr/Fzp6/f/k=; b=TlEXfzoFgtE6TntTFs9G82N3puhUgz1r3aqBJV4WNprzutTL5J4niPt7PV31S87dUCUM0Vaew4clDzdRcgbBQyhNcZA3cgt/9BLSG8WCsPYGhKRmwqOjlpSswvhbe+GkgBYFBk+quwnK9/WnGp8xafr5mYcsQz0s8/TIL7Mlk5kP8WR+qW7Ke+rUgpxcO2WJWET8a+jY5XeEwandPF2T5X8b8NO5rPo2MZ1PT0a6OG4p4Gx5m1ECHXj1xEojrOJByyPDv9FpGR7nmEmcGTOB+Fkx52GQuIq89rSAMQEkSAp3IMXggEkMzkMx9GP/K8KYY6MOOjZksDhFElixOdi6/w== Received: from DS7PR03CA0245.namprd03.prod.outlook.com (2603:10b6:5:3b3::10) by PH8PR12MB6698.namprd12.prod.outlook.com (2603:10b6:510:1cd::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.17; Wed, 28 Sep 2022 03:32:01 +0000 Received: from DM6NAM11FT044.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b3:cafe::2c) by DS7PR03CA0245.outlook.office365.com (2603:10b6:5:3b3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16 via Frontend Transport; Wed, 28 Sep 2022 03:32:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT044.mail.protection.outlook.com (10.13.173.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.17 via Frontend Transport; Wed, 28 Sep 2022 03:32:01 +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; Tue, 27 Sep 2022 20:31:48 -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; Tue, 27 Sep 2022 20:31:47 -0700 From: Suanming Mou To: CC: , , Subject: [PATCH v2 00/17] net/mlx5: HW steering PMD update Date: Wed, 28 Sep 2022 06:31:13 +0300 Message-ID: <20220928033130.9106-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: DM6NAM11FT044:EE_|PH8PR12MB6698:EE_ X-MS-Office365-Filtering-Correlation-Id: fd995f8f-c1fa-490e-445d-08daa10201c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6Fv9/x7MMpYIFISKH/t8rtmUxYhw18Y83B0fBPcgjJUeoNYhZPo1n9il8QKoqrIYJPrbOgbiH2iV9WmWWfSUzy8KIj29iVLZe5A3xQvTK0SP4/g1+3AC4t5DwhkMRvCn2dPDvXG6WmfZdMxdFcbIjiKaVPDVadBYZ8g46HYrRi+GeYG0d+1H7d+c+zhsXbttFHg1gHSa+2NJQMnhmQXC3SHh4A4gtQgw7mkWybLrMk/VUxhQa0JK0aujHCaob5LDrmoqwtMinlHEwsX7Ejh710btSJ/XYyS8zSLl6C6RwseAtGpa8S+57eXVWTAEHCu/6NUmWAFSa4CxYn3ZIOCQzcjP9bCrpgOaz4zjzdGo/29n1dWhVVo57VgCnsM/8kjeJr5JZV0i+Hk4Qm9P77sEq/1/PUkA5dYtrL44GovDIt0vbrNt18tpQmcpR+l8fSDXgcYgY1s/OuMjy1rv5V0Ixv3eagpfB1W9AuD9mtcPyeui5Sj9UnsbneR4imeKQdKJP91a0TwFvjecmqCHMVnKMsdsw7SI+QJMGjLe8bx55R4Kp3KmeY9mkb+NeUM9wB7+tMqRi1n8EBqE9FuHmANv9nlamxIpU65Fq/PhFcsKUyG0DOW13tkLGEOd5V5+7192oWlKgNOgP1ZoRkxQA2T9YdBGr0rTiyY0NUhXRAa8e4mrhqSsfOKD55WBMVgnpzQF3u3GOLKYZbcRdAeZhEaqEEpm7a1jHv1Xcu7LEy2m22OmdSsHqujvlWVszSvT8XQ5/SCsql3z0kMh3eM+YG1AxNv4MqQ1Ka+LTe+XYldzIzkhUEruimJRBrSzl6u+BFMmymtiSrUSuxl8lTku3lNWFfUFzjYerncFjCtvVCgtHIBQS8ZJIP5GqWP01nYSHyKs 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)(396003)(346002)(376002)(39860400002)(136003)(451199015)(46966006)(36840700001)(40470700004)(2906002)(36860700001)(83380400001)(6666004)(107886003)(109986005)(7696005)(478600001)(36756003)(316002)(82740400003)(8676002)(4326008)(70206006)(70586007)(7636003)(41300700001)(40460700003)(356005)(86362001)(82310400005)(55016003)(40480700001)(15650500001)(8936002)(54906003)(5660300002)(16526019)(2616005)(186003)(1076003)(426003)(47076005)(6286002)(336012)(26005)(266003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2022 03:32:01.6783 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fd995f8f-c1fa-490e-445d-08daa10201c7 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: DM6NAM11FT044.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6698 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 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://patches.dpdk.org/project/dpdk/cover/20220922190345.394-1-valex@nvidia.com/ [2]https://patches.dpdk.org/project/dpdk/cover/20220921021133.2982954-1-akozyrev@nvidia.com/ [3]https://patches.dpdk.org/project/dpdk/cover/20220921145409.511328-1-michaelba@nvidia.com/ [4]https://patches.dpdk.org/project/dpdk/patch/20220920071036.20878-1-suanmingm@nvidia.com/ [5]https://patches.dpdk.org/project/dpdk/patch/20220920071141.21769-1-suanmingm@nvidia.com/ [6]https://patches.dpdk.org/project/dpdk/patch/20220921143202.1790802-1-dsosnowski@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. --- 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 (4): 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 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 | 9 + drivers/common/mlx5/mlx5_devx_cmds.c | 50 + drivers/common/mlx5/mlx5_devx_cmds.h | 27 + drivers/common/mlx5/mlx5_prm.h | 64 +- drivers/common/mlx5/version.map | 1 + drivers/net/mlx5/linux/mlx5_os.c | 76 +- drivers/net/mlx5/meson.build | 1 + drivers/net/mlx5/mlx5.c | 126 +- drivers/net/mlx5/mlx5.h | 318 +- drivers/net/mlx5/mlx5_defs.h | 5 + drivers/net/mlx5/mlx5_flow.c | 415 +- drivers/net/mlx5/mlx5_flow.h | 312 +- drivers/net/mlx5/mlx5_flow_aso.c | 793 ++- drivers/net/mlx5/mlx5_flow_dv.c | 1115 ++-- drivers/net/mlx5/mlx5_flow_hw.c | 7874 +++++++++++++++++++++++--- drivers/net/mlx5/mlx5_flow_meter.c | 771 ++- drivers/net/mlx5/mlx5_flow_verbs.c | 8 +- drivers/net/mlx5/mlx5_hws_cnt.c | 1198 ++++ drivers/net/mlx5/mlx5_hws_cnt.h | 703 +++ drivers/net/mlx5/mlx5_trigger.c | 254 +- drivers/net/mlx5/mlx5_tx.h | 1 + drivers/net/mlx5/mlx5_txq.c | 47 + drivers/net/mlx5/rte_pmd_mlx5.h | 17 + drivers/net/mlx5/version.map | 1 + 24 files changed, 12536 insertions(+), 1650 deletions(-) create mode 100644 drivers/net/mlx5/mlx5_hws_cnt.c create mode 100644 drivers/net/mlx5/mlx5_hws_cnt.h -- 2.25.1