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 C290C41D49; Thu, 23 Feb 2023 08:07:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8DB4D43058; Thu, 23 Feb 2023 08:07:07 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2057.outbound.protection.outlook.com [40.107.93.57]) by mails.dpdk.org (Postfix) with ESMTP id BAE414021F for ; Thu, 23 Feb 2023 08:07:05 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AX5KCd8sixFND8krQrHfNoRrv1HqgfhKBK+zX5ywq3avdj5WI2Y/K41V6kgVWQnV6ZYiD827ZbY2+paX6vz52hXE/MRPoPfNrsiVjRvFX0hY4ZdXi6N1WUaa6RVlVuVozOhtXXZOPzgaPD4txOGDNOk/D65t2FSNKanpuk5WQuTeVSdjgYqLEUnPzn+ZPn0FfiRb+42qm7TWR7p7YTcmpiSNc1q6OACRMdXZL9y5umptDHEfAk88FhDViuLUvcfWqYC0Dhg/ERPzNAJM2eJEcM901cO1ZX71JwSL458GO0Cm+oW8xoPOtQUYJRFhfe2n8APnLf2Ywo1PkzyE+x6LKw== 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=+B1WBtYBJoCtfqqfBhaaMY405n5drZFZiO1dFnc5YKU=; b=cWZH4j45qAoH8TcuSyuPxeJJaTXI+mMSNs6AxPw8IiksoGUkFykRKd/6DVJZEGQZxmWYbRuWh9+1R1A1Cuz1Pghkm6/SP6eI+1G+vjHqRHokn74WzaDgFX7ub9yBWBwA+8dH0gBljYMbVrw/tPeVfPiOwd6QXXQnQZ6PcR51RHBTBAvaHzDo7Xwg19KxmhpizpqfHq57T8Peyf5spnydEQa7L8bDpWs14SJ7PBoA5uu/k5LtGhe+YaX8O9lVp69oOsIKckA3oqClu7+o7+5Yems/SUDtF1uY/xukUsZ4YaVL9Iq4L2p37Yyog2vkNY7JpU7pXI1g9awhZkmCZPdXTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=+B1WBtYBJoCtfqqfBhaaMY405n5drZFZiO1dFnc5YKU=; b=mneJgdP36rwdxYzFIeA8lf8gU8BECL4cqD9xga5EGZ5laVW6CYyhKCE79Mgth0L1XpVtZgiqOFq20MRGb3MtUKPXDnEBKPeQ/pknpBocfUP5YSxwJrV9RbSbusEhE4cS1kVN9HCGx+Mv7nkojLrk4wevX0c+elMIyX79e+xx7EFY39vM/2S46aLZYHP8KzGX/oL9H2uGFOQSpyCffBE5nDqHDp6EPom9Ymk+iu/d9zw8vgraaKaMLGNXR97zblWOvNiVzhAK5UTP8YGOf44xJXKJqsOPivbezxZnrjj0atL5Q52iqzaxx5LtZBLehli1OsNoZn50mr+STa4I6mu9Jg== Received: from BN9P221CA0019.NAMP221.PROD.OUTLOOK.COM (2603:10b6:408:10a::34) by SN7PR12MB7300.namprd12.prod.outlook.com (2603:10b6:806:298::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Thu, 23 Feb 2023 07:07:04 +0000 Received: from BN8NAM11FT033.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10a:cafe::a3) by BN9P221CA0019.outlook.office365.com (2603:10b6:408:10a::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21 via Frontend Transport; Thu, 23 Feb 2023 07:07:04 +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 BN8NAM11FT033.mail.protection.outlook.com (10.13.177.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21 via Frontend Transport; Thu, 23 Feb 2023 07:07:03 +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; Wed, 22 Feb 2023 23:06:48 -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; Wed, 22 Feb 2023 23:06:46 -0800 From: Rongwei Liu To: , , , , CC: Subject: [PATCH v3 0/7] add flex item implementation Date: Thu, 23 Feb 2023 09:06:26 +0200 Message-ID: <20230223070633.946328-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230215115251.3924578-7-rongweil@nvidia.com> References: <20230215115251.3924578-7-rongweil@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.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: BN8NAM11FT033:EE_|SN7PR12MB7300:EE_ X-MS-Office365-Filtering-Correlation-Id: bfdd201e-f5c3-49a3-e534-08db156c9149 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: bsyNosSNoEdMnhSVU75W12dLQpiSANSCKZLDbFjqHb0yEMpR2p1nYgJI2muhfAoCC5Q2YyE2flkfXseebX9Udas1GeBRNcrLkwQtrgT/b+976xxdOJHs1Z0+mp7JTMsTl54zOCkreaO0HpaVUwhO3TL6AiWd+8aCjNYkwnXkx/YXtj6nje2AaEf6pgKbd8Da9NoGxrvxl51Mj1wPuxMDZ6C5vALBh1mtFZsdGNdJQObdAx5lkPLyiCuvUZOYhhCTfw+lAAvNXfbtzfNMyQtJ47OD8eaQI3E4mLHk/IZ9xNq2BjFrrBG4XT4R71glMW73KMh3/MyGQs3XNSYxjN07zLuI+Kgr86yy8lyFARVqCbtTSOj6+HmDnEC2EuIW1CU9C/l9b7AFTtwLcwqcMMdEwZ+HK0+5V6m8nWFHWQsf0e+gTvWpfBQt9C+Cf5Qt1dJzWOT/I+sbPHmkrHC96GCvqW0BKc8CC/QKhKAMj3xG83sVAfnos9d6jXWqy9wbIaY0l5cgM8UGu0z7b0L5N60YIsl8X6rzkEegkDIusxdDEdU4Y8VGuhgL4OGFAW60xbDZbhoQHWfmwuTv4R2GfxmxhJrwE7mLpudLG8YZ89oOLjvJzXmHLfL2FdI03nXFKQD0TmmN1q2Et33JHZB1w+bFEMivtJTl4u0XMOSo4uePLjuSOOW01MalhYb9i5FrklSKIH5j9t87zkz2b7vp19em3WRfQyHsYvPFsS8+JZwSApA= 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)(346002)(136003)(396003)(376002)(39860400002)(451199018)(40470700004)(46966006)(36840700001)(7636003)(82740400003)(8936002)(36860700001)(83380400001)(356005)(86362001)(36756003)(34020700004)(4744005)(41300700001)(2906002)(5660300002)(6286002)(82310400005)(16526019)(26005)(186003)(40480700001)(316002)(6666004)(47076005)(426003)(1076003)(4326008)(2616005)(336012)(40460700003)(107886003)(7696005)(110136005)(478600001)(70206006)(8676002)(70586007)(55016003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2023 07:07:03.9216 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bfdd201e-f5c3-49a3-e534-08db156c9149 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: BN8NAM11FT033.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7300 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. v3: add error message for testpmd output. Rongwei Liu (7): 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 net/mlx5: add error message 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 | 77 ++++++++++- 10 files changed, 473 insertions(+), 52 deletions(-) -- 2.27.0