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 09E0C41BDB; Sun, 5 Feb 2023 14:42:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9825540A89; Sun, 5 Feb 2023 14:42:28 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id A16B640A7D for ; Sun, 5 Feb 2023 14:42:27 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Llm0nULoJaJRI0cRkPuAO1sfg6844g2ppjw/xXarsbKPhELKf8VFaEPnPnDbWtx5Dw/gaTQHqftavHWWj6v6O0aVLGpUs5Pdy3DUxD+f4f3GCs92hH7nkpF93moLy1vGd7905DSvof0DI0+yRIutyLynl96siF/fUvxGkcaDK17jFeS0MThvKZ76GGJE/sx1bhedGONKqIPXQmnC+iL/YI9lFP/NRIAzF856Ybo0vrtDFcYk44isn8Q5ZwiinYXCl7pKSq5WKz3lSw+Z/H/fKGJVv6bQuYpeg6x/qA/Qys8pKEzfrjscTg/c2/nw2Xy0B+B3hsRTwzy7C+OHc6iUqQ== 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=ObYfhcGab15qOtSU9MJUbcSG5pKPL5dOcAap1Wz+5zk=; b=gFXVJlmtZ00pLgJfLjYHoRG/sQzgyOhYNAPNRLlXNa4St+bIT5a9FB38j3VZqq5AUV+Yds2/fCed2LGT6JnssFjb0XWYo+GGpk6kep4M7yGySriwWjT6o0rSKyZrdKI+79Zzrb9Kdu9xaPa8wAexgrF2APqUzIiiMfiwTz3gsCjKXcVW17G0nNDQ7ULKl18cEJgmq94ILsPe1cIZhpdd1PZ6nEQDEmE3eigCQwxPnSnlaUIOK7qlCfIPLgIVZs/Tu1tTIKEX/Ufh/SI1AzBlFN//XL1mWarAACH0cLc9TnCRQvkjZgtKhdWoJSafD2QLG5YuD6zV5oPl3j1yrmYYSg== 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=ObYfhcGab15qOtSU9MJUbcSG5pKPL5dOcAap1Wz+5zk=; b=Qlw7uXLqf25brcHWOpGZuWaLhB27Y4OW/liqqfdaukD3zd7RmpwaRvdK4uM9i2FvjAMRKmH0ZwrCOkuNqoMlIqIPcrJDJ9z5JSLMtdRm5d/no6FbxvKo09ZgUlmpdg/p7OOyQBsxKPTasVdGUvkaL5+QJd/7tQumf5OmzhjmeIfaWM8nSZaS9xZiJCXpuQxyEE0R8rFSh8cOHZMbC/eDG+JRGiDbTmUstcNIfU8XBA6Nhmd//f81w48DTOQyoB+5MpP4WOJ1GttcdnrfrSo+mTYg/mmTdAX1tZD3f45jhq8JoCPRBjXiPajEe5ldtiugUT+F3JTH+bYA+r+kZ4DFTw== Received: from DM6PR12CA0005.namprd12.prod.outlook.com (2603:10b6:5:1c0::18) by DS0PR12MB8246.namprd12.prod.outlook.com (2603:10b6:8:de::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34; Sun, 5 Feb 2023 13:42:25 +0000 Received: from DM6NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1c0:cafe::43) by DM6PR12CA0005.outlook.office365.com (2603:10b6:5:1c0::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.32 via Frontend Transport; Sun, 5 Feb 2023 13:42:25 +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 DM6NAM11FT037.mail.protection.outlook.com (10.13.172.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34 via Frontend Transport; Sun, 5 Feb 2023 13:42:25 +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, 5 Feb 2023 05:42:23 -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, 5 Feb 2023 05:42:22 -0800 From: Leo Xu To: Subject: [PATCH v3 0/3] support match icmpv6 ID and sequence Date: Sun, 5 Feb 2023 15:41:51 +0200 Message-ID: <20230205134154.408984-1-yongquanx@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221220074403.1015411-1-yongquanx@nvidia.com> References: <20221220074403.1015411-1-yongquanx@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: DM6NAM11FT037:EE_|DS0PR12MB8246:EE_ X-MS-Office365-Filtering-Correlation-Id: c4cc7cf1-5bf8-402b-88c3-08db077ed0ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y4inWEeuKETIrj8tQc14YTnuZTDBpmjYIN990SOg1QtMVYUkiA13s7Qf7c8i+MdNkdeOgsuVwTy/bUFE6PLX5NA0Wj3IUd6tbEDLjqlQcwDDKpTkwxntaEbbRBVl1ixCmW9bOBn6k1iMXJ6aaHgi/aEKiMML0FUua4rXFf6GyxTyvxDFqwmkBySOu91GaLk9palMLGkgLXBvI7CidG7Q1m537wlMxTXwb8wm2rPdDF1Oh85CGKe/ITJEMUkUUbvsgIvONI4noEdDZlLJECMs8/BM6RrvOhg5vk8y26GnBPP0PEH6nSMQaKNeqsu9Jgnp0gWSx7BHTHFchCreb6Fyj1C2cqwfEO4Q1bZ6Y/aDfn/2ZfFKCMUo59zcwsRnMkEF74qGiJTDjUMHkhzTArHj7lhm2eypdA5RrSV4oBBham5tpkhW/59obYpD0YgDnVDIi9yylHt0A3BF8ld6Uzqf4fZSVKKPqfdMrG/d61t9+Tf/qWAS1aKNZZmZlFh4vg5OLNgGhKOsK8du51kndiXH4C2b7jqwAg5uZYN4MnzsxKjS2WMPEzhaLU5hSirOpbsNaxeHJHc3htaM4bvARgCnyWXI3ehOF/nAA7Cn0dwog32hIdWAk04dej/0Y4US+ALjK5Xa8L2yA+HDdZiOer5K/tTZEzvL3n38od+LyrY94bmoHaG8A18vxWahvoDQ/dNH0YsGBR2kPUPbXujS64fyoA== 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)(39860400002)(136003)(376002)(396003)(346002)(451199018)(46966006)(36840700001)(40470700004)(55016003)(40480700001)(86362001)(36756003)(7636003)(82740400003)(356005)(82310400005)(40460700003)(316002)(2906002)(7696005)(478600001)(8936002)(41300700001)(5660300002)(70206006)(70586007)(6666004)(8676002)(6916009)(83380400001)(36860700001)(16526019)(6286002)(186003)(26005)(1076003)(336012)(47076005)(426003)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2023 13:42:25.3643 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c4cc7cf1-5bf8-402b-88c3-08db077ed0ea 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: DM6NAM11FT037.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8246 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 Currently, rte_flow API does not support matching ID and sequence fields of icmp6 echo packets. This patchset is used to support match icmpv6 ID and sequence in rte_flow. It adds needed API in rte_flow, and gives corresponding implementation for mlx5 pmd. --- v2: * rebase 23.03 --- v3: * Merge content of rte_icmp6.h into rte_icmp.h. Just keep one header file(rte_icmp.h) for icmp. * Correct some code style problems. Leo Xu (3): ethdev: add ICMPv6 ID and sequence net/mlx5: add ICMPv6 ID and sequence match support net/mlx5/hws: add ICMPv6 ID and sequence match support .mailmap | 1 + app/test-pmd/cmdline_flow.c | 70 ++++++++++++++++ doc/guides/nics/features/default.ini | 2 + doc/guides/nics/features/mlx5.ini | 2 + doc/guides/nics/mlx5.rst | 4 +- doc/guides/prog_guide/rte_flow.rst | 14 ++++ doc/guides/rel_notes/release_23_03.rst | 9 +++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 10 +++ drivers/net/mlx5/hws/mlx5dr_definer.c | 88 +++++++++++++++++++++ drivers/net/mlx5/mlx5_flow.c | 61 ++++++++++++++ drivers/net/mlx5/mlx5_flow.h | 4 + drivers/net/mlx5/mlx5_flow_dv.c | 76 ++++++++++++++++++ drivers/net/mlx5/mlx5_flow_hw.c | 2 + lib/ethdev/rte_flow.c | 2 + lib/ethdev/rte_flow.h | 24 ++++++ lib/net/rte_icmp.h | 22 ++++++ 16 files changed, 389 insertions(+), 2 deletions(-) -- 2.27.0