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 699FC424B9; Mon, 30 Jan 2023 05:53:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3EE9940EDD; Mon, 30 Jan 2023 05:53:37 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2068.outbound.protection.outlook.com [40.107.93.68]) by mails.dpdk.org (Postfix) with ESMTP id 9DE0540A8A for ; Mon, 30 Jan 2023 05:53:36 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ePDrb1jUYQAjdp1umm0cPkYmiJO6qvHoePbvcNa8JP3lZ+Q5DSUYmFV/mbpsJ+2L3LWGOHgYmD9k1ac1xNg3JD62tGAMXcCtzuRGqKkW4w+g05/WxjooLmImqzDDniCb5IZOn+16i0mE3EsRoCuyG/eL/W1IuTkjYtavPaGtcesPltLqizeh2RPMax/P/31HsULWlZRiPX7GNoZBeZrlycl9OypI6hZSgsim3jdtYFktxPP7AwBEUYz919wZoe+T7VIsOmk2tDgDraTO2+3wvLWpogT0MPVDzjC2UE8Gg1lXiKfsVMCPBZLQFQu+RyYjrV8yK4LSRb0wv1G90tdrLw== 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=KnvtH/DA2TXgFnQPKzG/QJu72p2sVQTmnQ7avvbbiEk=; b=H4b21RB3fGAdeCDqEfSIM8/qB3MYKgK57FrfLPR7zPJUTwh6I5IlN7r9MdUYvULFBoEOohY+4OvPBh1uMKo2JJkyFQnK2SrfFg/qRniiQcXKrU6MUxsC3egId/IUA8kCI6ABy4xVQOIcBy5sgXruV/CYThb1n13eV9H9+7vJ6GSpVv+zBS8ftBrE+THEpb9DenN+ZJq0K6wuqrQWHfX786yt4lfm2fE9ZmmsZEp6HndYYpKiRp2G3t50gsP4zULK3xXUzNflt7OWbOknPS7CEQerJjvrXPS23CB75k2lPrUx+0y3EQhLwDgAdCai/9KMrAW2cJx+Bc6P7Avrzb9kOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=KnvtH/DA2TXgFnQPKzG/QJu72p2sVQTmnQ7avvbbiEk=; b=avW3koJ1j8rJfUCzqsDMOF2iKaIaGVe9l/QbOgh+4AnXvOEtHFerTLC2XgmAVU1ECjJBzjJiPbzghR/nXVqNhgkero49HruG5I+Oh7TZGAiaVNVWKakVCrpCiwTIUI1RhoCBIkZfk8YASI1Goed6gL8BjKpfJjCKMQ3qhcmuDX2tWbYCRIVtPZBkku6I3zexD/9i89imr2C9gfLRWklvp1c/bCWuWSMkNWkyfLh2ndxSp8a+P3T/CgS+J4k0ztHDYgn5r7nPcIISH416eWq1OkiIf/Ru6sNEKS9iyEqNSSmsnwoXW5yL26mkyLQVZNG9YnqXEUbvJOGa4S6Vpj90lA== Received: from MW4PR04CA0104.namprd04.prod.outlook.com (2603:10b6:303:83::19) by PH8PR12MB8606.namprd12.prod.outlook.com (2603:10b6:510:1ce::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.33; Mon, 30 Jan 2023 04:53:32 +0000 Received: from CO1NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:303:83:cafe::21) by MW4PR04CA0104.outlook.office365.com (2603:10b6:303:83::19) 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 04:53:32 +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 CO1NAM11FT014.mail.protection.outlook.com (10.13.175.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Mon, 30 Jan 2023 04:53:32 +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.36; Sun, 29 Jan 2023 20:53:22 -0800 Received: from nvidia.com (10.126.230.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; Sun, 29 Jan 2023 20:53:20 -0800 From: Rongwei Liu To: , , , CC: , Subject: [PATCH v3 00/11] add flex item support Date: Mon, 30 Jan 2023 06:52:51 +0200 Message-ID: <20230130045302.1560006-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.230.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: CO1NAM11FT014:EE_|PH8PR12MB8606:EE_ X-MS-Office365-Filtering-Correlation-Id: 2eaec1e6-d5dd-4ba6-8896-08db027deff3 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: VGS4kPRVYLi+L31VJrTERWMUkykJBpnFM/prTJU7vYMC4ReALE91WtGiOenYSXAoNGzx79BpwyxQpBzqga7cd7UG+jSwTyJ9sLSsyQRzLkQxRQpq9dARcOlBOu5A4XwWDD8KPIqkgAnLmE55ShoPX9alS6m50t11gfQRwJiUaHOAfKT8shx2nbC5rTQDFGnpWPi2ieURB7YY/6V1GEI8hP42Migydk85s7gLMpoKEleO4fWS0cv3//pfrK2YGDQ1wJN5hXDBNlg3HAci5MdYFnnCML5WPu1uhS+oNmiDAEv6zSquP8gnERvfYZokj60BygSwcW3SmzzsmFhYjVgNVhda0VdKNgIe5AvDIcAwG7Mmzm+llTP5OUimxDi+B9eWIIp48aAFl6gbWl4fxDCjCJ5FUfvXabxptyKTXUSgK22I0NNrvKel/Uvs3CZkskLcFCrZR1PjW+nXcmUYzFZE52fqWxZmYAAKkJZjNFjYiQLsC53oOjy9lUtwhs7zL2MO40samPQ8SEmb15zsLeyByZZs/8OCz+NIjqSpeFSC4k1W9Xmh84HFtT/kiC9DrVthz6Bu83W66N2Abd8sWJ9yDl13wxqggObtL6Awx4fxK+uEEl9vpobBva0pZsc9KKeZ4+isgr4JGoz8JfZd3bfVXgL1aS8WZEx6d1ZdQMM2Aqonhtz0zCKy52kLcvmuP/h3V54BSm/mRctAbJBuEVOd7A== 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:(13230025)(4636009)(136003)(346002)(39860400002)(396003)(376002)(451199018)(40470700004)(36840700001)(46966006)(336012)(70586007)(2616005)(70206006)(4326008)(7636003)(82740400003)(82310400005)(40460700003)(36860700001)(36756003)(86362001)(55016003)(54906003)(110136005)(316002)(356005)(40480700001)(5660300002)(2906002)(83380400001)(426003)(8936002)(8676002)(41300700001)(47076005)(26005)(478600001)(16526019)(186003)(6666004)(1076003)(107886003)(7696005)(6286002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2023 04:53:32.2158 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2eaec1e6-d5dd-4ba6-8896-08db027deff3 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: CO1NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB8606 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 | 2 +- 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(+), 105 deletions(-) -- 2.27.0