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 7AB2D43A46; Wed, 7 Feb 2024 13:29:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 010C340279; Wed, 7 Feb 2024 13:29:45 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2040.outbound.protection.outlook.com [40.107.223.40]) by mails.dpdk.org (Postfix) with ESMTP id C3CA04026E for ; Wed, 7 Feb 2024 13:29:43 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BWvNaXuKLAMDsShXXeSUpnyH/J25kVAXW2UMw+N1jrGUWQqZiLH2N+ow0RkJE4EO+LT5owMifcZCS3xqVcUufIgwIU+3YElcZaPWCL0luoZM3tVWdNPSws37iylMSv68a4elUuNS2d+xP5Akmv5wBkTfQ0ilqUKDIoNvbqIrmO3xjO7Y4wu/MS1HyrLXoDsa8fl+z+kog+TM1xOl7s0cJuot8Mhsua7LFtz1T1cN3aIP1EYx7L47FDXL+w9qyeSfx9hcDI9n/BLVXs4PDwqMVf8EWa8V1G1YwQ1Q0KsKs5Q4juFN05eSEKCDmac6bqcCodfa1L9kl3py0z3RrT8CLQ== 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=8P1oubq2xwHkmYIDTZxpOX/FeTg5d24Gl2rGbUC72SQ=; b=hGPoGXBiuBLyYlGz8SsCfR9gkLTMQ/HhR1lqAGUU5ChJFlREHRqPWu38DZo4xXGn++seUcsIy//lhnb6aU3lznlR5jgg7LI/WnOJztP46HSdmSSmnzANtZLxBeWYyB8iCIREfVYVJDeRAIdxuakigqftMPoItN3asyGSIZX115xhWJjkhZPYxvtjx4AbKLfinEfluhNk39DpX5D8ZLdi5vtHylJSzQ9S+E/tZkk1R90EttXgo++JwL5a7Xc73I0hNp0kouVF86hMR9DhcHOm0vQEPerfer+ZrV/d3YgTs5YMtZnfEfjKRaYXHfcn6TC7nFHr8bKrnQvPn9i09C/FXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=8P1oubq2xwHkmYIDTZxpOX/FeTg5d24Gl2rGbUC72SQ=; b=OGvfcVivwYqOeWjIRV3jp+GwetiE8yMA4wL3g0Dk/sThRp0y3CxhZeIzWJJQNfC2cUxNrfOIn+rDhc6xXTOoI5TVERQj5JU6sJduZcGF5rjYXBi8zQ/4O1olM/ilQWTkyOg3iC148A77Ep/RiqWhpSKr2K26RCBLGJktfznwA76jhoTbdNab64mRWZASuR0m1bmKNj3Aq3AWo87W0V/uWfc4W6yLNK9j3x1MO09RY1v/lRUbPagozxiSBa9kyVwp4CoZiYu+5FUs8MiDdVeFLtvK8dVDMdSE4tVRskR8+1YQq7y2ULnv4nDam0AeeB5O03d3I12wfeuTIXWoWfC0Vg== Received: from CH5P223CA0022.NAMP223.PROD.OUTLOOK.COM (2603:10b6:610:1f3::12) by DS7PR12MB5767.namprd12.prod.outlook.com (2603:10b6:8:76::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.11; Wed, 7 Feb 2024 12:29:41 +0000 Received: from DS2PEPF00003445.namprd04.prod.outlook.com (2603:10b6:610:1f3:cafe::7f) by CH5P223CA0022.outlook.office365.com (2603:10b6:610:1f3::12) 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 12:29:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DS2PEPF00003445.mail.protection.outlook.com (10.167.17.72) 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 12:29:40 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) 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 04:29:24 -0800 Received: from nvidia.com (10.126.231.35) 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.1258.12; Wed, 7 Feb 2024 04:29:22 -0800 From: Viacheslav Ovsiienko To: CC: , , , Subject: [PATCH v3 1/6] ethdev: add modify IPv4 next protocol field Date: Wed, 7 Feb 2024 14:29:03 +0200 Message-ID: <20240207122908.20646-1-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.231.35] 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: DS2PEPF00003445:EE_|DS7PR12MB5767:EE_ X-MS-Office365-Filtering-Correlation-Id: a9799b38-5d7d-4933-2f7b-08dc27d8750d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /4Ro9pDGbgZK0xu4pW6LwR1y9PS6mkx9ADVGbyWGwSPcttZHgVI4gWI2zJwVRvRsy6xDgArgCOx3N8tzgtf1HtntSntugcTPOUn0ddfXcpCJB8NCkx+qMvQ2bOU449OS/GU7ULrGJJzfD8HgW1IEPrz0ctpEh208Ig/wXx0Btaint93PfmXvicRTn0MjKSq/wwhbfY7bltcgCSkJkGJelrhtfi1v7KW1vkHDkh8RN6jriCY67EiH9QffRr4kneNfeG89fPJi7LUoJEGNm7/FFDjAyGWAanWr/rbw5kalr/M5/582nLN3Kvd/KzqxYG2DMfZLO+CI/ZDwZND8Ab+mzoUOu4+F/ggM3ktV/S/RoLYTLjOqKvkrgcNBHnuWYIufC+qzdc6XeZ05Tx5uLVQNeJHSy7wC4PZKPkPGPrStO8QsmL+sVsHF6Smh6FQ/M42O5JRhtcSTLmnvcZgQaEUK3+azpG4k6NqnhFVk7IOan2NvItiFU1qwpDj6YJfNF5RN2wzz/n6kFWHlaFYPAGtp6m2e2AV27oAd5KOSeH0XFjTULQGGbxYRiFIqgglLnfo7k+YKOePepi1TJl06vl7Rsyt07KuxZJiKcEfoarDcRYVdfPIulr+7J8pGhdzk63h9I7LvDVvbp5V75pI5s4Wa3tUpfeVwbi1HNA0Mu5M4jLjxGHGYBam9D0B4cRUEgzWesfNRRSg4oERKzEnesgpRl1kQ9AUgbMZNt7u6nqeB5Jm1edBjQVxhrD/7dDIsXhCi X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(136003)(346002)(376002)(396003)(39860400002)(230922051799003)(82310400011)(186009)(451199024)(64100799003)(1800799012)(46966006)(36840700001)(40470700004)(41300700001)(47076005)(1076003)(26005)(83380400001)(16526019)(54906003)(2616005)(36860700001)(6286002)(426003)(7696005)(8936002)(6916009)(316002)(6666004)(478600001)(8676002)(4326008)(70206006)(70586007)(2906002)(5660300002)(82740400003)(36756003)(107886003)(336012)(86362001)(356005)(7636003)(55016003)(40480700001)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2024 12:29:40.8266 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9799b38-5d7d-4933-2f7b-08dc27d8750d 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS2PEPF00003445.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5767 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 IPv4 next protocol modify field definition. Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam Acked-by: Dariusz Sosnowski --- doc/guides/rel_notes/release_24_03.rst | 4 ++++ lib/ethdev/rte_flow.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst index 80db117206..99981ae2ea 100644 --- a/doc/guides/rel_notes/release_24_03.rst +++ b/doc/guides/rel_notes/release_24_03.rst @@ -65,6 +65,10 @@ New Features * Added ``RTE_FLOW_ITEM_TYPE_RANDOM`` to match random value. * Added ``RTE_FLOW_FIELD_RANDOM`` to represent it in field ID struct. +* **Added new field IDs in the experimental ``enum rte_flow_field_id``: + + * Added ``RTE_FLOW_FIELD_IPV4_PROTO`` to represent it in field ID struct. + * ** Support for getting the number of used descriptors of a Tx queue. ** * Added a fath path function ``rte_eth_tx_queue_count`` to get the number of used diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index 09c1b13381..9e76e53905 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -2421,7 +2421,8 @@ enum rte_flow_field_id { RTE_FLOW_FIELD_IPV4_IHL, /**< IPv4 IHL. */ RTE_FLOW_FIELD_IPV4_TOTAL_LEN, /**< IPv4 total length. */ RTE_FLOW_FIELD_IPV6_PAYLOAD_LEN,/**< IPv6 payload length. */ - RTE_FLOW_FIELD_RANDOM /**< Random value. */ + RTE_FLOW_FIELD_RANDOM, /**< Random value. */ + RTE_FLOW_FIELD_IPV4_PROTO /**< IPv4 next protocol. */ }; /** -- 2.18.1