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 9F13DA034C; Mon, 12 Dec 2022 10:00:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7D1944021D; Mon, 12 Dec 2022 10:00:46 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2087.outbound.protection.outlook.com [40.107.223.87]) by mails.dpdk.org (Postfix) with ESMTP id 4574740151 for ; Mon, 12 Dec 2022 10:00:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NhNStT5mP6d8HhbPaX5HKo1TGwKS3QY5rurPGpcyZDM5PSfCeJz/FUqReNgagkL+HW9xpkrtD4C8+MUll+XaR5BS0iW+or4gIzjsjE76sp0GFWxMxcQNUcdOf/JwXlZQcFPeSU3apyPnezUP9I+y1/K7RPbP+Ju509EMCPRGT3AO7yNPFlN2omE84+aGnshzyO70zUQP1BT7JmbZVnChvmdNwUDoLW7fwgDfE6xCQzwtnNOM9dZwR60heut/LsRIazcC17slsGNxvfy37EhFOxp9z4S28AO56wZeOvvNHKNjYJJysmbXxUcuCQLMPWskWHDfL2DxG1Fnf4/urNW4QQ== 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=iWB0Yp1qgoWUEgqupf2G3jxYwOn+sEdHiP3cEYQbWz0=; b=dG+HbBw4LB4Ze8WsI/XA3bbC2pvMJuAESk2IVhe9zYGKgVYlxr8rJ3lyFLYUwSGc1CV5tMzuzVEGKSxCRxEy9oqtEt+pI/HxzoBRgW4XRJwZ7yCmSIrTvz9zYwkz0NSyp+Wjdbe6HOsN/fnoykTTLT7kOhABWm/fvUdPE7ws9BpJnGIIRVFfHSBTcSGNEZgSEKVMvfkFQZoBo7c0d+7ffQSBdlXzmgWnF8zMEcTR47V9Qk2jzFdnfRpcKOez02dfTuFu+HU2dHJiEJ3b0lhqHvKa6zTovqfZgsnjYVQV6pw5SAF6wAeiQM0Ea2pu2KV7N9vo16fCJrCqKwxWxn5NAg== 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=iWB0Yp1qgoWUEgqupf2G3jxYwOn+sEdHiP3cEYQbWz0=; b=kfgSuYgly9AZL+aF6Gwn3vfIB8UlPAd6MY8zKn0pya8TYlE84psDE9pm02VaoEOl5qSreCli7+U/RQ9qM3Ljwa5XFpSf/xNcxNxTkqTSeVM9VmeOnOayXcCJpMwZn8kGRLh0oHp9AhbC6wcyKOEUSWmdlCDcoHzao/7/M4CyCRmZk248LEfJPRBAzOX4+UiOVvRz0MiqG3VwFDxL/MP9ApcNen6BNaDrrhiitZd9LryQfSxAqa6Xhs7V9bzFEVRD8l1E8ximiiV8wBsrEhjmtCAuiZbO9rfhZJcyB+ZXwinvku2otlf7EBML9dhWD0NBpn8TqTuV0sX/zSalLV0ORQ== Received: from MN2PR22CA0016.namprd22.prod.outlook.com (2603:10b6:208:238::21) by DS7PR12MB5982.namprd12.prod.outlook.com (2603:10b6:8:7d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Mon, 12 Dec 2022 09:00:43 +0000 Received: from BL02EPF0000C402.namprd05.prod.outlook.com (2603:10b6:208:238:cafe::78) by MN2PR22CA0016.outlook.office365.com (2603:10b6:208:238::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10 via Frontend Transport; Mon, 12 Dec 2022 09:00:43 +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 BL02EPF0000C402.mail.protection.outlook.com (10.167.241.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.7 via Frontend Transport; Mon, 12 Dec 2022 09:00:43 +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, 12 Dec 2022 01:00:24 -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; Mon, 12 Dec 2022 01:00:23 -0800 From: Leo Xu To: Subject: [PATCH 0/3] support match icmpv6 id and sequence Date: Mon, 12 Dec 2022 10:59:19 +0200 Message-ID: <20221212085923.2314350-1-yongquanx@nvidia.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.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: BL02EPF0000C402:EE_|DS7PR12MB5982:EE_ X-MS-Office365-Filtering-Correlation-Id: 56596684-0d9c-458f-3e8c-08dadc1f59cb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Z9fxTNNR2qQ4vCenOvfKoihQtmTTNlJZzYq0T4bBTaM5GMjflOqG4sNlorMhMvC8CCCjAh2Kaeao/BpzeeOhpIJeUCPzrnd5q3CKFngjfHB/CBF3aN71oEc+bHzqJ4Jc7mpjX5bc+9g/vW8L9WZ6Cq17JSAqnLk+IcFOAGVv7uLf6p/pqOYzXd64+AxXGNYYtbdfw+5iYFdfZYS7zp1XNC/e+RK8qb2NHnLZggQPdeNvKY6sEbP+nNLmzculWfWPTS7EJ2Nbi8oLmWXRCk6zrDCd0wKus74ePVvo/J2xVdnF3KN0PpfdsNsqrfvRP3ylKVKsZ3TKSoxolnfypHmRA4l48af4HY+0AS/expoAun+1U8hm+qOHZEMwzIdLIt7gDREg8dE4XZstJV2JMhXuC8XpazZApOkIdhm41OsZ4TBkjQYLf44x5M/utks34OowZNBTcOWa695Ie1cw6W5RrtVT6wr4x7ok7frlZ11ZhBzzTZrlvbVNa6tk27a/NVZ0o8Tj5bl2sJQXLLIBLf/Brg8K5OFwMAumvfFQQeQpIxgeAOmOJCmuUZpZBLLe34yW2GsazYsyoniL4NEJt3qZTsOv9XfSJeS81sSbjsL/1Z8XOEV2lc6dRItI+ArIymEbXeY0rOL152d2izz85/Sl7zmogoIyN8UM8biMX22f9v4j+N+F7RHZGpnheTFx/Fp+ 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)(376002)(346002)(39860400002)(136003)(451199015)(46966006)(40470700004)(36840700001)(82740400003)(7636003)(356005)(82310400005)(86362001)(6916009)(40460700003)(316002)(478600001)(5660300002)(2906002)(336012)(8936002)(70586007)(41300700001)(83380400001)(8676002)(70206006)(36860700001)(47076005)(426003)(6666004)(7696005)(6286002)(1076003)(40480700001)(186003)(26005)(16526019)(55016003)(2616005)(36756003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2022 09:00:43.3060 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 56596684-0d9c-458f-3e8c-08dadc1f59cb 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: BL02EPF0000C402.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5982 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 app/test-pmd/cmdline_flow.c | 70 +++++++++++++ doc/guides/nics/mlx5.rst | 2 +- doc/guides/prog_guide/rte_flow.rst | 14 +++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 10 ++ 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 + drivers/net/mlx5/steering/mlx5dr_definer.c | 110 ++++++++++++++++++-- drivers/net/mlx5/steering/mlx5dr_definer.h | 6 +- lib/librte_ethdev/rte_flow.c | 4 + lib/librte_ethdev/rte_flow.h | 25 +++++ lib/librte_net/meson.build | 3 +- lib/librte_net/rte_icmp6.h | 48 +++++++++ 14 files changed, 419 insertions(+), 16 deletions(-) create mode 100644 lib/librte_net/rte_icmp6.h -- 2.27.0