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 1839FA0545; Tue, 20 Dec 2022 08:44:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF29840685; Tue, 20 Dec 2022 08:44:50 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2082.outbound.protection.outlook.com [40.107.237.82]) by mails.dpdk.org (Postfix) with ESMTP id 4DC4D40395 for ; Tue, 20 Dec 2022 08:44:49 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c3svU0hd6APIh52xFc++Ki3SQKzJGmrw3SpgtPKsJFymgZJJZhXmz/nSQD6IVwSWdLr2TUNsYnyZ5q5oHSDVgNCnpIiRETagTSfTIqWGCaoxKzGD3X5kdQ/NQn0rJEQYHVrlpk+DwpiDkZ1Pb6bBi9w7oAB1rtlaFdpVoj/HGJLMGg6enieS2a/yUfTpK4lB1dT30c+K60mgP7IrBDUgmodiOorR9ybjVltqKzMPNvMXKeaTepDkuD2pdXjb2L0O3gl4jen5N/y+EMSODP6zAvaPVqpXCxR6vBx71lK5kN4bsYukfdciBFehvRdPX3sR9UtRdW2q311jh1VK1audtA== 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=oyd0aW2FD6Bedc9bFF9TjQC8W4otKQatJA1tazVv4ME=; b=XdKnUnZGXdsY3b1JpQ1YSccx6kGnjdie1mOzFGmv8LNxTkeQApAxTvHZKDdm072gSp/4lZJzRLGymJaZBSo/UWTmzp3tbFc1IJYP6PykS1QDrk6aEsAjy/I1PCpSbx3j5iS4DxX0AT+OwMW8WFZhIEN9h8wN52kNfUQOhh0MfHUMI4LMeBjkfjiBaDoYXwMObFtSg657QGn/j9iV4UBqqg+D/JjslwUxvXNQD6k+GdHYWhmQWHMclc5CYUEG/RaZwHV5qdgz0QfUsLHz5dOqJFAk5ajJdaDfmYYqDt9huI5EWGCHc3KmrnDc7guq39BenIPrylQSuatJnfnw4q8W9A== 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=oyd0aW2FD6Bedc9bFF9TjQC8W4otKQatJA1tazVv4ME=; b=rIhk6t/CULqdfKlyQVh8xFlKr7QP5GLCn+G/9XxusIyICjRq8JisRJf9E0N9/bCaUVqkU5PVt6Eb7E9XoM0yeny+i8VYCag8rwEloxvaQ86o111YeMBEvOs0k9ddlU1LmW6kJLYPlmftpQNmMHhUMrxSZu23iPJhYw1e9YDqdZExcaRhM+naUHeUAAxWUkGeAmcUDBmvi8gHBOIVrKlrCSEpCzrtfAy3MuuRjfLtCASWREFZmUspvgAXea6ZEGaGItOCPLmgKwYTPZ0YovMJS0MbHZVoye1rvWdtjxafR8A19/yrW/mVSydEe5BhN0XmvvFZVryoJ0YyglGsqTGDfA== Received: from MW4PR04CA0308.namprd04.prod.outlook.com (2603:10b6:303:82::13) by MW4PR12MB6873.namprd12.prod.outlook.com (2603:10b6:303:20c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Tue, 20 Dec 2022 07:44:47 +0000 Received: from CO1NAM11FT111.eop-nam11.prod.protection.outlook.com (2603:10b6:303:82:cafe::7f) by MW4PR04CA0308.outlook.office365.com (2603:10b6:303:82::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.21 via Frontend Transport; Tue, 20 Dec 2022 07:44:47 +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 CO1NAM11FT111.mail.protection.outlook.com (10.13.174.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16 via Frontend Transport; Tue, 20 Dec 2022 07:44:47 +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; Mon, 19 Dec 2022 23:44:32 -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; Mon, 19 Dec 2022 23:44:31 -0800 From: Leo Xu To: Subject: [PATCH v2 0/3] support match icmpv6 ID and sequence Date: Tue, 20 Dec 2022 09:44:00 +0200 Message-ID: <20221220074403.1015411-1-yongquanx@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221212085923.2314350-1-yongquanx@nvidia.com> References: <20221212085923.2314350-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: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT111:EE_|MW4PR12MB6873:EE_ X-MS-Office365-Filtering-Correlation-Id: 262cc143-d1a9-4525-f246-08dae25e1197 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6DPmcC3wPAfG/rs26QBOKIUQShib/8VlcDnRfIjb6h8VQjzOItigC9L5lQBPjvQmxAzL1mQEWlITB2FAQnB8pRajd2bd21a+34G5SnV0eflDDjI3luLCaAWs3ArxCGA3rspzxrBpRA45wqtLC2hevb1BvI3P9QLtDm4vGYPqSAKHx/DPOpVM226Ec2aCGz/MLHnTmoFukdy9CIZaLWJlA4i/6KDytJEaSTjuzqYX9sXJEDXT6avcjebLovehOYI81SvekC/QUI/A5fBNTXMNkLh56gHiSejnPYXYQMOxfewlTAdjpzFxs8iXL+7H1WRMOCxF4uLG9TRJpIVsenSohmqqlkqk7BpmyjeDSnCouf5VhUmqhePQsaCBPw1uLjepCd+iuo0sv0ci2S7tu+SIvUFySe5LNXrpKfX7qozpG9ZPZDLBE/F61ZwfeGpLzVt0oOhiEtAntIK0fbRYu3X+2uz4r0l0ViSsMU53J7lbLIAYX3DvB2BYVl25i1ZcZYLeZskTiA31bPd+2LVzTGPvPCH63NaBjWdQb19bhUSPT2iumGUw2tYm27PC/yNPE3HeTph8ne7jtUbnAFVI7lJHcyunYP7Ky+I0gi5C9d1dLHFs7u3xKe3nzTmot0miejmNZeGtOrO96Nttk14uK4f4PkrlOlY5oqh1E78d+Eb0yG4b7n0zNmN2VjuHsvFM4awwQ/ETTPmeFz16u0cBoSTa8g== 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:(13230022)(4636009)(396003)(346002)(376002)(39860400002)(136003)(451199015)(40470700004)(36840700001)(46966006)(8936002)(83380400001)(36756003)(47076005)(7696005)(55016003)(7636003)(40480700001)(82310400005)(336012)(41300700001)(356005)(2906002)(82740400003)(426003)(478600001)(6286002)(316002)(186003)(26005)(16526019)(40460700003)(1076003)(6916009)(6666004)(36860700001)(8676002)(5660300002)(86362001)(70586007)(2616005)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2022 07:44:47.5382 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 262cc143-d1a9-4525-f246-08dae25e1197 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: CO1NAM11FT111.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6873 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. 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 --- v2: * rebase 23.03 app/test-pmd/cmdline_flow.c | 70 ++++++++++++++++ doc/guides/nics/mlx5.rst | 2 +- doc/guides/prog_guide/rte_flow.rst | 14 ++++ doc/guides/rel_notes/release_23_03.rst | 10 +++ 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 | 4 + lib/ethdev/rte_flow.h | 25 ++++++ lib/net/meson.build | 1 + lib/net/rte_icmp6.h | 48 +++++++++++ 14 files changed, 414 insertions(+), 1 deletion(-) create mode 100644 lib/net/rte_icmp6.h -- 2.27.0