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 1DFF341CA5; Wed, 15 Feb 2023 12:53:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F12F9410DD; Wed, 15 Feb 2023 12:53:18 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2088.outbound.protection.outlook.com [40.107.244.88]) by mails.dpdk.org (Postfix) with ESMTP id 6F8D540EE3 for ; Wed, 15 Feb 2023 12:53:17 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BPALMzuEHaV60ktNILk7X1HtECN4OhD8zO6kFP02vqrjLaPu5H7USssS38PZKP2BlhS9eY/cxooNKIvgESPiSrXlX4Ee+chHvhktAQh6HB0BUU4csu515yZYWonaOZEWqOf/WBd9nLnNooVdH3pot5UYt2W5vyFN40jxy3HX16GJp0O0vidCzHns50X4MaKBQIseXGR/DA5xsHA7A8z61U/Wv89GCngRrNp+5oPTbQe9BtLhhGrwG/HZbEvuGVvkdvzw3algwA3ucosVb7t5ys2DmLdcJe3rLsnPuNaeMGKcb+pfMls9Un/kNmxjSweRLolXlynuMNKtlCPojrnj5g== 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=QbOD2xXZpcRmbdocv4+6rJakyqumHU90/TNwe5lJztw=; b=hbFHr5zeiusRyODCwtbHT65LekPZTgfNmROq1Wvr4jQGtOuONdGNJ8v+CG/sUtN74R6vf/coxPEHPk2Rd2cvhrXg1gyG+dBEsWOYy1jplaMY6XiDAF0duA46Mrnqn/RrG4ZyynnHDCtLTXjMIba+n+xKKsKtPzZt7htMXHAs3k4J4BQHkeFaLHZpp69I/Ge68UPTHSEeFzt9CPNNN9ikNiC9V30aWM6ouQXL22oIyT6AEicRTiAJ+G96LNAspHXPFbpcvSK84Nl6cBOsTr4GvS3G4BU45T24iOQmF166ZXgsGht5ahsYoMFv3rD+MNWU1lrcPicjahlBXPQM9JuybQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=QbOD2xXZpcRmbdocv4+6rJakyqumHU90/TNwe5lJztw=; b=NXJU6oC0E1djktunj4kt+0JOSjyP8sZBHqONady6Gn5MKqbOG9MLMP0KvhCkLNiH8w20G8i5z8N5MHtL8PVmCe6/hp418NvnM8g+ot0OAVQFYmZukB+vzLREPNdQmPUgyhrWDkhY7K4o5sDXCPHjL7kZ5IAzmDGp9dez6JxcEwYRC4f/lUoCgXsAND5n8jdVR/naQtqt2dViYn0PX2DTEllkBZ4fFwrMlcTwAcDGl4J8jukSCYsekBwLTNp4bSfMtRlXcGXp6agCzOOXF0xY/wKJRqkBSJtMDEulg5zHgunbFcDA7Mc4gKhJtm7vCHIVXCNOghY9Djbwl4Khhj8Cxg== Received: from DS7PR03CA0258.namprd03.prod.outlook.com (2603:10b6:5:3b3::23) by DS0PR12MB7925.namprd12.prod.outlook.com (2603:10b6:8:14b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.26; Wed, 15 Feb 2023 11:53:15 +0000 Received: from DM6NAM11FT051.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b3:cafe::da) by DS7PR03CA0258.outlook.office365.com (2603:10b6:5:3b3::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.26 via Frontend Transport; Wed, 15 Feb 2023 11:53:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT051.mail.protection.outlook.com (10.13.172.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.12 via Frontend Transport; Wed, 15 Feb 2023 11:53:15 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 15 Feb 2023 03:53:07 -0800 Received: from nvidia.com (10.126.231.37) 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.36; Wed, 15 Feb 2023 03:53:05 -0800 From: Rongwei Liu To: , , , , CC: Subject: [PATCH v1 0/6] add flex item implementation Date: Wed, 15 Feb 2023 13:52:45 +0200 Message-ID: <20230215115251.3924578-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] 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: DM6NAM11FT051:EE_|DS0PR12MB7925:EE_ X-MS-Office365-Filtering-Correlation-Id: bdd348b6-d14a-45ce-3ff5-08db0f4b38fd X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vekLIgE+/vsjajyjX7jTiTbE13gb9KP+JpqoVGeVGdB9XLFm6RDIrTtW4ye+a/lgU+yKclvBSlwtzKutFhhWv8jIa+dzDOpAmpTP+UVA1W9emWez/pD6srLL8Jim21CvxXgOU92XCliygTsanHFcuJirIB0UPrGV/qV0mzsWk7r650mV0RsxP+v2hHdZXePGx1nI5DxjHJWzbhXL0tr+JdwzwwZPNfkzviPXBmP968xZA63iKlRRx6paY70hmCFHL53D430NMpGh4cpisZZym50x2DY6ecrzRwBRpoGv3gVqegM3EiYcp7em7QxKF0HrM/BEpRTNQfcFtUSi7qpMFzRJOdAiBkNf2OvUNbJvEjC3/DAvK20Sguz/9bpSguZc1wNlmuzUPgEjw60N9cnpXk0FBQVNANMWy4cnoBuH55ZOnaXOXQECcyg1ePQ7+JXbKUGVRtUiPSIiuvO6+AGtvLP0zx1+Pq5NRqp4if4wqR3hURH+6P63qGryPFQqZGIpp9yIga2oKYt7wP7OOXgOB8sDj8FV7lDdrzfigZzGkhfEilk8BlWLJmch0/KvYjyjFVd6zConh+jPvEF9qj9JZf+yi+LWj1qIYnOSup6CDn1iO5Ai2ydEFX0YzAPYXhXCWwdUpmoi4hRIXvK6F3OZTJ/bG8gl3LY8q+Se6HNoGE/5Gk+yjYRuhuzzHj8AsVhKnCkAumqNbwKBP/xjWYU/9g== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(396003)(376002)(136003)(346002)(39860400002)(451199018)(46966006)(36840700001)(40470700004)(41300700001)(70586007)(70206006)(4326008)(8676002)(7636003)(55016003)(2906002)(82740400003)(40480700001)(36756003)(356005)(82310400005)(86362001)(36860700001)(5660300002)(8936002)(4744005)(40460700003)(107886003)(6666004)(426003)(336012)(478600001)(7696005)(186003)(16526019)(6286002)(26005)(47076005)(1076003)(2616005)(110136005)(316002)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2023 11:53:15.4579 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bdd348b6-d14a-45ce-3ff5-08db0f4b38fd 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7925 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 Implement the flex item matching and modify field in HWS. Rongwei Liu (6): net/mlx5: enable hws flex item create net/mlx5: add IPv6 protocol as flex item input net/mlx5/hws: add hws flex item matching support net/mlx5: add flex item modify field implementation net/mlx5: return error for sws modify field doc/mlx5: update mlx5 doc doc/guides/nics/mlx5.rst | 4 +- drivers/common/mlx5/mlx5_prm.h | 1 + drivers/net/mlx5/hws/mlx5dr_definer.c | 83 ++++++++++++ drivers/net/mlx5/linux/mlx5_os.c | 27 ++-- drivers/net/mlx5/mlx5.c | 2 +- drivers/net/mlx5/mlx5.h | 6 + drivers/net/mlx5/mlx5_flow.h | 4 + drivers/net/mlx5/mlx5_flow_dv.c | 186 +++++++++++++++++++++++--- drivers/net/mlx5/mlx5_flow_flex.c | 135 ++++++++++++++++--- drivers/net/mlx5/mlx5_flow_hw.c | 64 ++++++++- 10 files changed, 460 insertions(+), 52 deletions(-) -- 2.27.0