[v3,00/17] net/mlx5: HW steering PMD update
Message ID | 20220930125315.5079-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 1998AA00C4; Fri, 30 Sep 2022 14:53:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B67D540684; Fri, 30 Sep 2022 14:53:36 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2062.outbound.protection.outlook.com [40.107.244.62]) by mails.dpdk.org (Postfix) with ESMTP id 0C0EC4003F for <dev@dpdk.org>; Fri, 30 Sep 2022 14:53:35 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KV9tfKTmDGrLvIoWLslAP9wFXWf0fubiPFNNcwSv3Sqhg4vqgUoj7vJvL5BlTRywEp1+fWtAjbruO8aO68Ee1v5Qo67d9I5uub5vgzXHKUt29QEZayUBeiQFy0s4ysKU79C7RfpNrI4n31eE8rzYwvE2+PrAZy3ZejZHyWWqGgKg10pKOgEZ9yBiqlfSOhsgXVt3FVw5U1J+ArvrXyYPMe4Yq1hEE70rSr3Vapp6yjCqqmOjOLiUNTJRW6PmNZ52+e2MMakb2VzVAFK+/TkvfQsfNO3Zx3uMYUMqSlm+qVMGNqTKdcJDonBA1Iy/bm63oiJYNjoQWKTB/6aIQ+I3Rw== 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=0GFDew4lWjiSU/ak2tgCUkGRiyzAvwJpS7MSXQlLFK8=; b=g1jImEbSdCpwO3/VQMuE/HEBI34kIW9Ix387iLJsBKctdG4QhHN+M4Vkw0h3Wd1gZyVNaqxWlAJm1hHjNnh3SRRqzE3IzSLv0IhC+IjxlJzLkBJX/ZCWcWtG+NnbIS+VmLsbISxReJ2RNbMfXrOuCtBPCr0n21dXyfiaHUyAxfcxF4FaPcEovkaLEFB5qNlhdMPYKwrIIHRjr5Pp8GiU5Z3VE/8IX+wfR6rJPHxqKRz/EHLPbdo1f7K1ngweJ7dkV1uO3BR1qCIIc9FRMt+oIa4k+c9JZ8XwfxoinZDxsQ+DqhPECmCSh4gPZPckRm1uI55Hm43x3KmG4xQm57jyRA== 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=0GFDew4lWjiSU/ak2tgCUkGRiyzAvwJpS7MSXQlLFK8=; b=G9bP/Mr8J+Un4x3tOPSChskbvaYSIQSlA8QTUNTz5s7rL5g8LklBDvYGWPb4lk0gRLDqcWLLpgEYcU/mrgsip26QUjQaCIfjGDhK+Ps4gvjJ+/0GdHuQAbqSSasdhaB8TtHxztu1kj3qgjDQMAP2MhxNx024JSB5aLQUBycv2UuvZDNySWpeV/3V/5+PUDldVpUjV2/i0B1rSCEaA5VGpz2lsyif59bMc2pTniotpLC1KtjMvAYQ1dNJu4C5ANmE0Ab/ImGHxcU5dM1VViUN4wgDgAOeAhoJTQIYqg7qhM427iXnNvPB3quNb0ioTJurAVBE5WW6d5LSS5nkZ6GeZg== Received: from DS7PR05CA0107.namprd05.prod.outlook.com (2603:10b6:8:56::25) by CH0PR12MB5251.namprd12.prod.outlook.com (2603:10b6:610:d2::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23; Fri, 30 Sep 2022 12:53:33 +0000 Received: from DM6NAM11FT104.eop-nam11.prod.protection.outlook.com (2603:10b6:8:56:cafe::39) by DS7PR05CA0107.outlook.office365.com (2603:10b6:8:56::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.15 via Frontend Transport; Fri, 30 Sep 2022 12:53:33 +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 DM6NAM11FT104.mail.protection.outlook.com (10.13.173.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.17 via Frontend Transport; Fri, 30 Sep 2022 12:53:33 +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; Fri, 30 Sep 2022 05:53:32 -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; Fri, 30 Sep 2022 05:53:31 -0700 From: Suanming Mou <suanmingm@nvidia.com> To: CC: <dev@dpdk.org>, <rasland@nvidia.com>, <orika@nvidia.com> Subject: [PATCH v3 00/17] net/mlx5: HW steering PMD update Date: Fri, 30 Sep 2022 15:52:58 +0300 Message-ID: <20220930125315.5079-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: DM6NAM11FT104:EE_|CH0PR12MB5251:EE_ X-MS-Office365-Filtering-Correlation-Id: edd4fb65-48ba-40cb-51c8-08daa2e2c84b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1767II5KchK4bEQ6gXrFDnqFafKL3gSkPByFljUgt3rVrNxQ/HKCkrSUD29N6Ep2QMvImf3H+WaUhEygazJ+UhYw4yGa+2eC/nTBbtQzS/FpNhlrZak/Zo9NezHvBbG1OUIfxVcFzeSBSgrsDRlgPwkIDbv8TEmOsaXNj9EAuQtiwF0BDiQGSUJoEOakCpa3YDpRTt2Ox3xtTHWOBmCw5AZaLr0YN0JP9TJD3YiPfL//9SCoJGZs6AeTr7zHadTv6BXH5e8Z8OR4YWfdDTNcWFx4EuDSP7iw1S3Eixz3/CZH8BgPY2wVw3h68G3g4p0bFstmiBLREAIlxeJ16iWbrvvToFNAtEiihcp38NcqyTyoy2E1KU2gXu+/cQuvsyj94K2PMuXHP0o/ERneBTq5ZbBVPZJuxQThumTj/V58ywynSRxJTcyHpMUG6Cb/HEzeH862ivUoxQyLrEoA6UYhejK7EU1X4+laMHADLPdH01Tt+/8+1LJKiGBnnfKBuLeg6tVAALAwOcXiTPArvW6V43wjxA/wpNWB4v69NRCfpNZ9U1nHf7IdxReiWoKX74orAUqRZvvPesf7xYDns4uCfUyeq/6ls/0u9PEMbtA1Aj01jNnolrHUiyuCR9m9pqtGvtkkUFZpDSqaDqB4shwbmhyOOqu+xHmYjk7lRCn+dxjprr+cD5+slX9nsmtyudZeRUniaXeXfPSok/Jv/ja67UQXNAEfi1C9Bc67be5c8EzxTWZdTM8jF4bF6c8sli6lVSMiFt2FVdmqA0wlnvgCnbAoJK5evjuV8Ct35M3uI9aRnKXQFTK2KtybNHUmsY4g8Rtk64MkCFClHg42smq9sR0yiZv7/bSZe1ZvU2KzDCPSCTSNBNQCLfuiTFhlZtzy 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)(136003)(39860400002)(346002)(376002)(451199015)(40470700004)(46966006)(36840700001)(15650500001)(83380400001)(2906002)(16526019)(1076003)(186003)(2616005)(426003)(47076005)(336012)(82310400005)(356005)(82740400003)(7636003)(40460700003)(86362001)(55016003)(40480700001)(36756003)(36860700001)(70206006)(70586007)(966005)(6286002)(316002)(54906003)(109986005)(7696005)(41300700001)(478600001)(6666004)(107886003)(26005)(8936002)(5660300002)(4326008)(8676002)(266003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2022 12:53:33.1472 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: edd4fb65-48ba-40cb-51c8-08daa2e2c84b 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: DM6NAM11FT104.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5251 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
Sept. 30, 2022, 12:52 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/ [2]https://inbox.dpdk.org/dev/20220921145409.511328-1-michaelba@nvidia.com/ --- 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. --- 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 | 1169 ++-- drivers/net/mlx5/mlx5_flow_hw.c | 7898 +++++++++++++++++++++++--- 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, 12619 insertions(+), 1645 deletions(-) create mode 100644 drivers/net/mlx5/mlx5_hws_cnt.c create mode 100644 drivers/net/mlx5/mlx5_hws_cnt.h