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 B98D3A034C; Wed, 21 Dec 2022 09:40:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6AFC040A7A; Wed, 21 Dec 2022 09:40:31 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id 48B0B40698 for ; Wed, 21 Dec 2022 09:40:29 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hOQeu1j6D/xOON9i3RNpnkrOqGbg9DGwth7nTpWM+1ngJ7lnXYuii5Sklr4EcSVPWkbNXpLqyqDR7Wu6hb08lvBy1mq7EKlXjj1FO2b8vpEuIeVFhZUcHCb6t7i48xwOiR2IRveYZX+9zDv340bsrrnSapFvVn/wpwpsnZWgpwG9ycwxnMOrykcUGH12jkwQKOi3pB83aQ91SfRN4FuruX6QfrLITjRF8DTMmmETRYufsHHBQcViUVVHuiTUqhttx46fe/iiVa2wmPbLvSahfIkzAZ8oY/R0DlhTOeUHLjWEtXtT6lzo5p5lRSzGq7DXj2KM/UvNtnb7FWjZAIxvUQ== 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=yAR6SuCDuVnwAipauu/83oKNdhqINrCLGpHHww6MLt8=; b=bTnIDrRp/pgnq4E1VLaHc6jFY0SFqsN6oLAqTlysaoM07ynZ/LM+BQfbMMzSyl39bPuTZ5F8BCm7acdjhqre2Eh2VuE4Lcw86hEOf+LrlFB86lQx2YPdX3zGGEpf/cGzxGn/6Z+GHV3SZis+/mTp+i980GkOJIpWnR/Yk1PHmkvGH39eM+moZLLFV2ctVrPvRQ26gmUEi+tg8CiW1rOBkujc6trS22Omd8tz5z2bt1ml7K+2OtjwaHCCmV8xAk3PgKQytnUyDUiqvcuu4xPCvCUuUoNfq8v9S2RO27MBjgON++JRCJZJsaXZmnE/6CQC+BIp7ztnNtjZGtbyctyibw== 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=yAR6SuCDuVnwAipauu/83oKNdhqINrCLGpHHww6MLt8=; b=ew/jgtTyO7mb6iCRtlYGlo2TQZGWO18YCkeN7/lOVNOTLToD25umfzNc11GmScOvK/Q4ftvnAmvoDQwIAiiKBUoTmGuRQ9r5X5NXegLagCOr5FuVGPJjTpert+ITYeRnvLiB9iwCbPUAyj9dFM7JrVLrRd0L1M40iIYnO2eSEMzo62zMnHWpAeBL6KMbUB4OOyWd0vFWjgG55cN76LdmzR48nHR5p1/STPajgTRzDeMAmRR220NvgfjYpitpitsW1B7Kln5ElkG/1I9cW17SNu0UDDnloZdhNQW2DIWSEE67P7DA3nLK1fjvob/dTpJdvNSCnQTvllpVJv9NDuSn0Q== Received: from BN0PR04CA0018.namprd04.prod.outlook.com (2603:10b6:408:ee::23) by BN9PR12MB5036.namprd12.prod.outlook.com (2603:10b6:408:135::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Wed, 21 Dec 2022 08:40:28 +0000 Received: from BN8NAM11FT053.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ee:cafe::5d) by BN0PR04CA0018.outlook.office365.com (2603:10b6:408:ee::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.21 via Frontend Transport; Wed, 21 Dec 2022 08:40: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 BN8NAM11FT053.mail.protection.outlook.com (10.13.177.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.10 via Frontend Transport; Wed, 21 Dec 2022 08:40:27 +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, 21 Dec 2022 00:40:16 -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, 21 Dec 2022 00:40:14 -0800 From: Rongwei Liu To: , , , CC: , Subject: [RFC 0/9] support flex item matching and modify field Date: Wed, 21 Dec 2022 10:39:51 +0200 Message-ID: <20221221084000.3680015-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: BN8NAM11FT053:EE_|BN9PR12MB5036:EE_ X-MS-Office365-Filtering-Correlation-Id: 3347727d-99ab-42c2-7693-08dae32f0309 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: dfQgu7/50gJZtd2LgXAvEdYhA3hwZC3hjQGhSralbyE/BEWbCIt4aaVsWt84fc0LyVqBTg9ZS9UIPrliAaIiA78uIph5t0JLuzfF3WgEojikoj26iCxbkCy6jdMGcRfRI+4Ou+HH/nGqG7E5S36bXOBbinL8/6es6dprSpYvg/m/2BqW5HzvRnU0B93X7VVCmhMjumY2zjRcHSlwqTkB2IBcPfe+Cu7yNbwoowA1bJY2SWWW9YhGkdGDGlxihm3oV/bFzMTxO8KZimZVVhbV/FC0cctubc3A4spwsIp2Dlcb46vjyZq7SA6Dbpf9lVjdkAtDan9ox4KzdCHZVoYxO7sOZMuCrFIw2bBWfHvGIpkGTckJw0mWExE3wue7p3H+sKCmqtvy4kyK+7SwaJtirlYrh4/io/8VyqG2AJWGTmJrrZMLfXzFuFNqkBsXOT8JH9dRDJgzL2PSXGkVIJFScmpLw/5YFkz3Cacmv8Z9Jit9DJMLJrS3ooPuxMsXpbOdPND1M5++ENVyY1PyM93BfayQ4aNFd97VCqNwC3xpW2ZPs8H+nCnnKUQLnQ/ESyuecDjPjqahK/M6e14pwmSwI8uVM/1ZXZeXFnLnQekwiaP7DqVJAy2PP9HGPGwPGSpqXBPqAOVTBav/bj6SVuarGqd3rUm/ETH/Gd6IwXpLBVXdQKDr6HcrAx3iq+D1mldtXg6+10xvPgThVqGNUhyUtw== 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:(13230022)(4636009)(396003)(376002)(346002)(39860400002)(136003)(451199015)(40470700004)(36840700001)(46966006)(70586007)(4326008)(40460700003)(8676002)(70206006)(316002)(5660300002)(36756003)(86362001)(8936002)(7696005)(2616005)(186003)(6666004)(82310400005)(107886003)(16526019)(6286002)(1076003)(41300700001)(26005)(47076005)(426003)(83380400001)(36860700001)(356005)(336012)(55016003)(54906003)(7636003)(478600001)(82740400003)(40480700001)(110136005)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2022 08:40:27.8235 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3347727d-99ab-42c2-7693-08dae32f0309 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: BN8NAM11FT053.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5036 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 Add flex item matching and modify field support when dv_flow_en=2. Rongwei Liu (9): ethdev: add flex item modify field support app/testpmd: add flex item modify field cmdline 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/hws: add hws flex item matching support net/mlx5/hws: add flex item modify field implementation net/mlx5: return error for sws modify field app/testpmd: raw encap with flex item support app/test-pmd/cmdline_flow.c | 123 ++++++++++++++--- doc/guides/nics/features/mlx5.ini | 1 + doc/guides/nics/mlx5.rst | 2 + doc/guides/prog_guide/rte_flow.rst | 36 ++--- doc/guides/rel_notes/release_22_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 | 23 +++- drivers/net/mlx5/hws/mlx5dr_definer.c | 141 +++++++++++++++++++ drivers/net/mlx5/linux/mlx5_os.c | 27 ++-- drivers/net/mlx5/mlx5.c | 17 ++- drivers/net/mlx5/mlx5.h | 8 +- drivers/net/mlx5/mlx5_flow.h | 4 + drivers/net/mlx5/mlx5_flow_dv.c | 184 ++++++++++++++++++++++--- drivers/net/mlx5/mlx5_flow_flex.c | 102 +++++++++++--- drivers/net/mlx5/mlx5_flow_hw.c | 64 ++++++++- lib/ethdev/rte_flow.h | 8 +- 17 files changed, 663 insertions(+), 102 deletions(-) -- 2.27.0