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 332C241B81; Mon, 30 Jan 2023 14:20:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B736B40DFB; Mon, 30 Jan 2023 14:20:32 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2068.outbound.protection.outlook.com [40.107.243.68]) by mails.dpdk.org (Postfix) with ESMTP id 8199C40C35 for ; Mon, 30 Jan 2023 14:20:30 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fFObDzHArKEQlGG4q0JBFBuuiHqrYlRsExC1DGq65bZS4vi2+aMFN6G4z7j1iSQy9zSWZfUEH+rGiYJP0S/lKa+xV1S63eQifn5OqCFe6GEjMdqSxVfT930yNS036PdDY7Qjd+Gx3Wxod8UbhIWnnrb/dMduqRLG1rC4mf1nESJAPebalVesbc8/VehInej6XIxzh3eAdEpMAn1Y3DnlRhKkmg+1/VabudU8MXmH3DoM8PXZKz3vBMCY2Uy7FsYIPDCcNB8tnq2+SuGphH7w+x2Itr68xZ9KFSrxs9hvhvHvJMyDOUc0GiLF8+TfOAvAMN+hjZyZXDdSwrAvKi0Mrg== 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=j5WVgT2PbQNuFZDy6hUvk25ZMUjiq7Q6b9F/Yo5o7U0=; b=UgYy+gpvwlKr10Yd3n3SNW5/X3T40yf7nOXjuc5SME6x6/wfegi3RayAs/EmUccKLYSCIbT8Catm46Ej33Hc9k3hGD/AkmbPbujO1VhfK1E8QLgqaKJXMAyP+4NsUSV6QazAUzvFyQ0Od6RNTPHzhvAslG9P8DpJPLpS3qtAXMQI8UzQ/mboG0T/8XMcSV+Eas9nWBAL/Xiyz9koRai2YquFf4DOqPflFeU5l6riB7lEtHNpBFcJdNGLXTWF3TQ9k4hLdMrqv3eVzZUAWpkvKJIPw5Th+6HEwYMWjJCUzVZVLp+8jUI/q7+kMum99Wx/o2V9njbrPrII5Tacm96E+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=monjalon.net 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=j5WVgT2PbQNuFZDy6hUvk25ZMUjiq7Q6b9F/Yo5o7U0=; b=YIbdgXg62ARYaVPerzbv6LaWhWmg1AXqnbOX5PxW2hak+KoHYBcYEzjiSgehaU0VFVrQQOl9Oht35jKuI+V0MxLeFIH5S4ugFvfK4RiZZ+jTmdYJv/qNQtp+/59S7jotqqJy6acu5EHjmYZZweB/EueWMWgWnaG75XUcfvV1AF2vmzkvEr4WjhqX1eah3Le1JRH5LGgoq2EZtOQLQZCg+UrOkDnx7vBtqZz2ROYw1ighcbCaubtgnHvxGWnB8W5pXGhOjN5s2zDwPHMUwc7iKvli7k8O0SLK1/puaMdI/KdVvTh9+rHkjoysDyiaDnCIaj99g5hDYhVMYik7OWSmdw== Received: from BN9PR03CA0982.namprd03.prod.outlook.com (2603:10b6:408:109::27) by PH7PR12MB6588.namprd12.prod.outlook.com (2603:10b6:510:210::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Mon, 30 Jan 2023 13:20:28 +0000 Received: from BL02EPF000108E9.namprd05.prod.outlook.com (2603:10b6:408:109:cafe::65) by BN9PR03CA0982.outlook.office365.com (2603:10b6:408:109::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend Transport; Mon, 30 Jan 2023 13:20:28 +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 BL02EPF000108E9.mail.protection.outlook.com (10.167.241.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.17 via Frontend Transport; Mon, 30 Jan 2023 13:20:28 +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; Mon, 30 Jan 2023 05:20:14 -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; Mon, 30 Jan 2023 05:20:12 -0800 From: Rongwei Liu To: , , , CC: , Subject: [PATCH v3 00/11] add flex item support Date: Mon, 30 Jan 2023 15:19:49 +0200 Message-ID: <20230130132000.1715473-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <3ba49f25-52d0-fe07-02e6-22a71e0fbe13@oktetlabs.ru> References: <3ba49f25-52d0-fe07-02e6-22a71e0fbe13@oktetlabs.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF000108E9:EE_|PH7PR12MB6588:EE_ X-MS-Office365-Filtering-Correlation-Id: 4dcde2de-ddc4-410f-e079-08db02c4c13f 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: b2WKAWdunSMX82IQQ2l2Zqp7jOmQ3M9fyrjgczJRR1L1r7Ij2Qp63m2LJg4H5iJTtJbC7m+4SK9XB+Q68ft4K+WO4OwOY99/5hqM1IjO8q4qjA7TVvgS86UAmKGG2vKkXpIh+Qnfl0zuH78aHizyZ6DTpHp2VrPECr8ImEPepZgXn3vBeL+p+h28zfGWhBgdEGdALzPTVHLJN4VfB+qdatVzktThukx6cDv32x7DKmPKmuNc6W3MrnSiSZfcn9//DKXC9QwW4nDpN3vuc4J/07pZOTKNXJPmM0CbGogOQo9VHYr2HxpZboPm9jknzLYL5+L7y+hbm30XJ6fKScfR9RVtLj8k0ZFQL4emH+OtFijaBIxtg++UxDdcMisSVzOPvdfcFINTxgA+iTFf1B15dV0nyz/paf0CQCXGL6lKTyFTQAEl6k4iIMAvq36UnuG4jXnO0fEkVL/6nSypVqsMT69PtmfC5PwaotUlJWWF2AY3jMh2o9zztQha2onUBLNSBXoNyWx8NlUSJQ9NM+hxJ8gFDydk8kGhH+pySk5pDkWiZMpWN8/KpAG1OYf3EXqssssXgIywk9UJnWDf2KhRkMebSN++HKaMdmFG2lYR/SmfxK2pWgCE4KQ/VR6+dEYpPcLpw4lYkbWAAstn+iqgzXVrcdhgQI3nuk5yh9gGYD5v0wcspnubPZ/y/kflxDAavYryHD2nKLrKuyFmWA0uIg== 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)(346002)(376002)(39860400002)(396003)(136003)(451199018)(36840700001)(46966006)(40470700004)(83380400001)(2616005)(86362001)(47076005)(426003)(336012)(7636003)(82740400003)(82310400005)(356005)(36860700001)(2906002)(7696005)(36756003)(40460700003)(1076003)(26005)(186003)(6286002)(16526019)(478600001)(55016003)(40480700001)(6666004)(107886003)(8676002)(8936002)(4326008)(41300700001)(70586007)(70206006)(54906003)(5660300002)(110136005)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2023 13:20:28.0216 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4dcde2de-ddc4-410f-e079-08db02c4c13f 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: BL02EPF000108E9.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6588 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 Support flex item matching and modify field in async flow. Syntax follows sync flow exactly. v3: enhance format, add flex_handle document. Rongwei Liu (11): ethdev: add flex item modify field support app/testpmd: pass flex handle into matching mask net/mlx5: enable hws flex item create net/mlx5: add IPv6 protocol as flex item input net/mlx5: adopt new flex item prm definition 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 app/testpmd: raw encap with flex item support doc/mlx5: update mlx5 doc app/testpmd: adjust cleanup sequence when quitting app/test-pmd/cmdline_flow.c | 123 +++++++++++++--- app/test-pmd/testpmd.c | 2 +- doc/guides/nics/mlx5.rst | 1 + doc/guides/prog_guide/rte_flow.rst | 41 +++--- doc/guides/rel_notes/release_23_03.rst | 4 + drivers/common/mlx5/mlx5_devx_cmds.c | 14 +- drivers/common/mlx5/mlx5_devx_cmds.h | 7 +- drivers/common/mlx5/mlx5_prm.h | 29 +++- drivers/net/mlx5/hws/mlx5dr_definer.c | 83 +++++++++++ drivers/net/mlx5/linux/mlx5_os.c | 27 ++-- drivers/net/mlx5/mlx5.c | 17 ++- drivers/net/mlx5/mlx5.h | 9 +- drivers/net/mlx5/mlx5_flow.h | 4 + drivers/net/mlx5/mlx5_flow_dv.c | 186 ++++++++++++++++++++++--- drivers/net/mlx5/mlx5_flow_flex.c | 149 +++++++++++++++++--- drivers/net/mlx5/mlx5_flow_hw.c | 64 ++++++++- lib/ethdev/rte_flow.h | 8 +- 17 files changed, 664 insertions(+), 104 deletions(-) -- 2.27.0