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 CE6BC42403; Thu, 19 Jan 2023 05:58:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E360410DD; Thu, 19 Jan 2023 05:58:57 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2042.outbound.protection.outlook.com [40.107.243.42]) by mails.dpdk.org (Postfix) with ESMTP id A41F44068E for ; Thu, 19 Jan 2023 05:58:55 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oKeZk1m+I7++vBp3rvtiG8gWqwF0G6uKkBIblFGpmIxgADtRadlmmp5rn24BNSjBeuasENXO5igRqwORQ94UwWfgb3dqMfD0hPfdI9pTSmThKSanKDArWnEn6wv9hywx9P0NEFYrXZ9nz3sZWHsuySvCt5lSBxWjIF1O8JCGW5wXXXm7xUf27IPM7WUbluUry3lHmdIs4SfYdzAxAisoC7rpVhRG+/DFlko9vJYYsipxXV/W71jSG2Caz+/dpgIIDcX1R5nRKZHu0nPrhuwUvDqXXbpfb7LokM2irXqT7qE9+hHHKCcR/pJz3fNtmXiQgOuHndZNFm7vzxez0c47cA== 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=Yaj3wDkd3cTNBkvb/1fg7Etu5sFx0JSZ5+olpdh2aZA=; b=YD4Rwwdhsfaxn4IgTRitNjIVnKEBZmOZ60fURAZCm+1KL3g3SbISSFQG4z8rHzan3RSPaiDOCgR4c4xXc/nFbAA1Xgnh3UqiQQE4ze2wETa5pmxIaTpaXHkzcF5rqlJ16Zwm0fqs0dMxNV8tDKuqZpqrYwcGMwPOollxVibyviNNpCukHgdSQ91lR4CCi47SkJEk3HLcO011XcQOl4IAJyvB/j5djB1EgKJ4/o+HQjCNZva6esbyiNd0qwmWr6FOAsQTLRdYR+M11imkXR/t0XF0JmV6hNT6oGKEPy6DlLeR4h3qM8xqc5cwrCyYKXf/cUngFCdkJaaSjnD7oy3Xlg== 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=Yaj3wDkd3cTNBkvb/1fg7Etu5sFx0JSZ5+olpdh2aZA=; b=TZn8biDKab2XA15jleAvTNpDcLDKKA8ShEMN+NnWVPG6YGFwSvYO4Cq7hD2rbVzKVYsxlhm5xjaZ78+TI4LOs2JwDNQZSZc83QzP/4r4O7vsXRKhXMsS2ONeb/i2TFeA5uuilBtFj1UZ28BrxNBxPGjS+0dz0rINCRlL2Yg9adlBfsdePLAXXv/AdV6erDtJV/NmBaBb7KVSsvRE8Di2684kM9xDVaVo5hb0adQKOwnuRftPk7NtLQcadfbOkKNRoIrkI2mIZikKrb3K+IFbEhNpLuY9sMs6v8qj2Bh9YidN1sP3ilttZ9WI2vOO1wmGeYrHOkCw11Q/adnA/CNWHA== Received: from MW4PR04CA0192.namprd04.prod.outlook.com (2603:10b6:303:86::17) by BL1PR12MB5141.namprd12.prod.outlook.com (2603:10b6:208:309::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Thu, 19 Jan 2023 04:58:53 +0000 Received: from CO1NAM11FT028.eop-nam11.prod.protection.outlook.com (2603:10b6:303:86:cafe::fc) by MW4PR04CA0192.outlook.office365.com (2603:10b6:303:86::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Thu, 19 Jan 2023 04:58:53 +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 CO1NAM11FT028.mail.protection.outlook.com (10.13.175.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Thu, 19 Jan 2023 04:58:52 +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, 18 Jan 2023 20:58:39 -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, 18 Jan 2023 20:58:37 -0800 From: Rongwei Liu To: , , , CC: , Subject: [PATCH v2 00/11] add flex item support Date: Thu, 19 Jan 2023 06:58:13 +0200 Message-ID: <20230119045824.665663-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221221084000.3680015-2-rongweil@nvidia.com> References: <20221221084000.3680015-2-rongweil@nvidia.com> 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: CO1NAM11FT028:EE_|BL1PR12MB5141:EE_ X-MS-Office365-Filtering-Correlation-Id: 5fa977ec-d556-4173-ce1d-08daf9d9dc4e 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: WRlsLrFPGUhvcxyLV/JIoYfDrtWSe+0nTF2T5RQV/TlopMIxwBz+84e00K2tCpCZrPz36Eb0J+GySnRz9dcKxNa8zikgCvOmdNN8lN+/44eajyu6VU8Yy93IyBgYkeNqKLU8646qfjYHksQAPPP6IVzp/q0CJU+5Tj3sOi1zoDKeiY+Ye/mULa+wj9Aylw6N1LOGntQn/W9xvnwr+dyypJ4pB+EOEO3KsBm6L1KFaNVD/nvkHtTtETOsEpbRNlf+4Ld7eeX++2nTSJtrOcxbEZ0Gnw/FsYGaytHu6292Va8GeHFz9aKcNcdjJzbdjlgEBFPykEDpRTZ5pPaqSsT83VFCFxd5Y5fLxZ8Kt1qMCiEhYmITJP9MNTMbGDWuAIpr646YKHAxV/0yeoAWgtVewxjwsy3adJMX50fSGB8D/OHFhgyLRZAWaQlN+WTFFEQMcIe7W8MFHWpwa7pk4jY9j/4KwnrfsndPC/9xv/m0tMy5nAyD0q4e6+y19RUBzbLp4rGEz4YESzl8d/RFEPW/xL0GFxrM0U05/6qcFiPs/jc+jXO/O0JFEA74baTi8sBi4o9/ElGAQ53h0BJ8VqIJmtwMeBB1LaoSV8DZge9XNC/Ctzl+9aqfOUcnDy4J4erEqPr8anWpImxdoBRk/Pj9egkuAUtfWYbJR1f6zbYaxxMZX8kSyREcATYIhYBfIQsPm7+fdTo4nqCRcququcgnxQ== 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)(346002)(396003)(39860400002)(136003)(376002)(451199015)(40470700004)(46966006)(36840700001)(5660300002)(36860700001)(40460700003)(82740400003)(426003)(107886003)(6666004)(7636003)(4326008)(8676002)(7696005)(26005)(54906003)(6286002)(186003)(2906002)(356005)(478600001)(16526019)(36756003)(40480700001)(70586007)(8936002)(336012)(70206006)(47076005)(1076003)(55016003)(86362001)(316002)(82310400005)(2616005)(41300700001)(83380400001)(110136005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 04:58:52.4155 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5fa977ec-d556-4173-ce1d-08daf9d9dc4e 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: CO1NAM11FT028.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5141 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. 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 | 2 +- doc/guides/prog_guide/rte_flow.rst | 38 ++--- 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, 661 insertions(+), 105 deletions(-) -- 2.27.0