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 2686D43AA0; Wed, 7 Feb 2024 16:52:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8FDE42DB6; Wed, 7 Feb 2024 16:51:58 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2078.outbound.protection.outlook.com [40.107.223.78]) by mails.dpdk.org (Postfix) with ESMTP id 8EB9B427DA for ; Wed, 7 Feb 2024 16:51:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VZYBCjqJxZrxPkaHTbWk8GIkElAYiq8keHMsgujW1qTAHcxudi8fQjTOyUBwz+r9fqN3cV+ONT1PDjNCjFQGBJOW0OhtozVz2AziEgdplBDsrzlnRso9SOGTGNCiLVhtidSS/lFaEL5W8tSoxuWmv0DH4gFvLl7inlB92RDCXeX4dAGnlIqvlqSitNZ2UH2KhndkKTlNMwd7E09u7yWuPIuVAeXnrSyBQVu89pm5IRF3Ii9mG0DhTCkq/lxeJkknUSk3zth7NWOOituC8tewPtLyUaxYDWy8/3kcDFJaXq9TrHTl7R8eVRl9EaimC/Z/2EZUBQ86LQqWwwuwOTwCBg== 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=bHoj+F/CJ17TOiqDvHq+o/Htj4gQHrRrUOCxu0r9zj4=; b=hWX22vv2EiaGSZeWPwcGW5NjdJy5nvTPiIt1nrt/4o94NAWo2s74PBxmj1zfiCJ123IGxaJHN7UR5XAsx3+sdGmWBJN9Hyehtek9NHkJ/VtwUqdYg4XEDwlXL08ynwWNo0cYk0rkYpChumK/rWz5NRELa4IJ4Y2rhhN2sC2cTTk+3gtCdP/VcbVn6eRjWgdjsnX1BlwsnvokRbq/tSuYq+ud3/Vf6Po7C6QzuUNh3RuPPEgt58qgXgUA2JgTZpJ9nk1i3sclGh+rPE/XSFVtSnpM6unqMzGjTmOGb5+B1eAtc5EtqGvasX97iGJ+2ppRipp8WjT/MPAoS2w/Aopauw== 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 (0) 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=bHoj+F/CJ17TOiqDvHq+o/Htj4gQHrRrUOCxu0r9zj4=; b=GvAJV96A6ZgGRHpo9v8TPQUBG1lphOzCanvKOSCSO6baMnHdJ7W8CKpIBsi8KH4G1vH6V7H7NyqBPF47W4wFDPF7o9V8jh/0CBV5ox2FNK4NT51tsO+MGGkplUMwggIhW/mr9GO6mOOpvTK7wmViOzKMb0P86DtJecN3uBeEFmDDhdCaKZTIB5sox74R6UnmdOE4kVURNDF0WDsggBx2RsVG0CcOBaxTDlZQXZRPNocsGzFFXefGeVOwtUcSNxzaNsle+YKmmVVKoAEFyJiuijTLos2LeN2+G1N38G/NroZvNjYtRWYndw+/oyNLQsuH82DsAN+/6qFx9/SfE1l3bw== Received: from SN7PR04CA0010.namprd04.prod.outlook.com (2603:10b6:806:f2::15) by SA1PR12MB6994.namprd12.prod.outlook.com (2603:10b6:806:24d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.14; Wed, 7 Feb 2024 15:51:54 +0000 Received: from SA2PEPF000015CA.namprd03.prod.outlook.com (2603:10b6:806:f2:cafe::54) by SN7PR04CA0010.outlook.office365.com (2603:10b6:806:f2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.38 via Frontend Transport; Wed, 7 Feb 2024 15:51:54 +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 SA2PEPF000015CA.mail.protection.outlook.com (10.167.241.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.19 via Frontend Transport; Wed, 7 Feb 2024 15:51:53 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) 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.41; Wed, 7 Feb 2024 07:51:37 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Wed, 7 Feb 2024 07:51:36 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41 via Frontend Transport; Wed, 7 Feb 2024 07:51:35 -0800 From: Michael Baum To: CC: Ori Kam , Dariusz Sosnowski , Ferruh Yigit , Thomas Monjalon Subject: [PATCH v2 1/1] ethdev: add IPv6 FL and TC field identifiers Date: Wed, 7 Feb 2024 17:51:28 +0200 Message-ID: <20240207155128.1581670-2-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240207155128.1581670-1-michaelba@nvidia.com> References: <20240206142658.1498907-1-michaelba@nvidia.com> <20240207155128.1581670-1-michaelba@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF000015CA:EE_|SA1PR12MB6994:EE_ X-MS-Office365-Filtering-Correlation-Id: f455e356-7e1f-4380-8f7c-08dc27f4b4dd 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: St2b7MAhuVeH3Zy+IYgWH6HDEsWKaH3lhW93IMv9V54n/MBHHuLVJ0lJXEPrdOkYDN+d/3/BWBEmGjbUpVf3LDyhAAUrPhz7lIV54YMSktYdu99rmz9p+9UfaeZelFRBA0kU9N8lzwxzA7GclRxlj3kltr0F+lsdpT+/sZzldwgZ6D46ZyYV0bK9DbEi6tiRbgO0UAXIpil+NeX1LZG8uCFIHfceEhVQAQOF74G834nsDDsOiThyy6l3HF6L4qggKRRykdyb82H9UL5arDUxJwRxHVphPSBp+LJOFvMSCIxFwTPGjFsp1wE7tXIOo5q3e1cFlNVEjk+q/Qr/nI9UACdgW7lr3B4EjWljR+yMvgGv5mTjpKUADxL7JdJXZTkQtLRPodxOCi/2WPNheUtgwVkj3AurbzJ9NSTiiBgL/3J7/RC7AlMmAcFIJxDKmnWqz/uujRRBbt1OzBNgqkN8rgIWX2CXp81c7UE8bgVa5JQr+uThW1iuP4cSkUjn3RPMd6fxWAQnf6FM0DXAKl79q3RvlvHkjoIdvuNgWmGQT+VjYKGDxq2Sn+B2MPrpS7j/AKJotSSKxoGVeK4w1rKP1j9q7WP5xmeM/2o4442fv4Bfs3Nr7/Pc5JbV0OSkFYEbv963bD/9LZq+ig79T/FfMdLIIhqiHEnrhxv95un8/0t3tzD5RQnF3TR7HA6VsBBliLAhRoS0c9GeNq7e2xLPBNkF9jzsvSoZtPvV6KVduq96hlQeaJpU+E/jwMo8rHGw 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:(13230031)(4636009)(396003)(136003)(39860400002)(346002)(376002)(230922051799003)(451199024)(82310400011)(1800799012)(186009)(64100799003)(46966006)(36840700001)(40470700004)(41300700001)(4326008)(336012)(478600001)(26005)(47076005)(2616005)(7696005)(6286002)(6666004)(70206006)(7636003)(54906003)(426003)(55016003)(70586007)(86362001)(8676002)(6916009)(316002)(83380400001)(356005)(82740400003)(5660300002)(36860700001)(36756003)(1076003)(2906002)(8936002)(40460700003)(40480700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2024 15:51:53.8284 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f455e356-7e1f-4380-8f7c-08dc27f4b4dd 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: SA2PEPF000015CA.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6994 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 Add new "rte_flow_field_id" enumeration values to describe both IPv6 traffic class and IPv6 flow label fields. The TC value is "RTE_FLOW_FIELD_IPV6_TRAFFIC_CLASS" in flow API and "ipv6_traffic_class" in testpmd command. The FL value is "RTE_FLOW_FIELD_IPV6_FLOW_LABEL" in flow API and "ipv6_flow_label" in testpmd command. Signed-off-by: Michael Baum Acked-by: Dariusz Sosnowski --- app/test-pmd/cmdline_flow.c | 1 + doc/guides/rel_notes/release_24_03.rst | 2 ++ lib/ethdev/rte_flow.h | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 102b4d67c9..ab8bece28e 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -992,6 +992,7 @@ static const char *const flow_field_ids[] = { "random", "ipv4_proto", "esp_spi", "esp_seq_num", "esp_proto", + "ipv6_flow_label", "ipv6_traffic_class", NULL }; diff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst index 0909a2245d..f548eacc5e 100644 --- a/doc/guides/rel_notes/release_24_03.rst +++ b/doc/guides/rel_notes/release_24_03.rst @@ -68,6 +68,8 @@ New Features * Added ``RTE_FLOW_FIELD_ESP_SPI`` to represent it in field ID struct. * Added ``RTE_FLOW_FIELD_ESP_SEQ_NUM`` to represent it in field ID struct. * Added ``RTE_FLOW_FIELD_ESP_PROTO`` to represent it in field ID struct. + * Added ``RTE_FLOW_FIELD_IPV6_FLOW_LABEL`` to represent it in field ID struct. + * Added ``RTE_FLOW_FIELD_IPV6_TRAFFIC_CLASS`` to represent it in field ID struct. * ** Support for getting the number of used descriptors of a Tx queue. ** diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index b8fc16b819..8b32a69d8d 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -2425,7 +2425,9 @@ enum rte_flow_field_id { RTE_FLOW_FIELD_IPV4_PROTO, /**< IPv4 next protocol. */ RTE_FLOW_FIELD_ESP_SPI, /**< ESP SPI. */ RTE_FLOW_FIELD_ESP_SEQ_NUM, /**< ESP Sequence Number. */ - RTE_FLOW_FIELD_ESP_PROTO /**< ESP next protocol value. */ + RTE_FLOW_FIELD_ESP_PROTO, /**< ESP next protocol value. */ + RTE_FLOW_FIELD_IPV6_FLOW_LABEL, /**< IPv6 flow label. */ + RTE_FLOW_FIELD_IPV6_TRAFFIC_CLASS/**< IPv6 traffic class. */ }; /** -- 2.25.1