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 0A78B43A46; Wed, 7 Feb 2024 13:30:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79B3442E04; Wed, 7 Feb 2024 13:29:56 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2064.outbound.protection.outlook.com [40.107.243.64]) by mails.dpdk.org (Postfix) with ESMTP id C723242DF6 for ; Wed, 7 Feb 2024 13:29:54 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bYl6GzhQUnkHV//8xTg7zeTP2+zvag75FDsZsr0uZ2aZoJ2h0yOTK5r7H0rlyoCqSeDv6z4CNIywnWA6aesFhFDB2IJG+LimchF41k6CaTWETuTOxdcJb8zvnWwzAULIm1IVxQRIQK99r+xPrPafwQMFf8fDuWey6Bp5XCS9eAxfl1VgwYDK817PK/MkvnwNrg2pWCeWh/KPtPnsKJJBXensLCPuojozCoQ2ZNLH94hddCc06GCCzPBq+6gKVjrjTZSHJIbX1s4EpmX/we+kvGopHz4jxonVQoUOlTyaSWR9bRjz8GRDaew7yjpPwraZm8KjcG/8/GDOj+t58mz3CQ== 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=WpLkqBa/M85wUNAeDznAbws8mLk37QsYsh5epKM9XHU=; b=BcESsCLljSprJAKsyfcGA/uZCcN5RT3ZUP3FJUX/4TTB/Njig67JYeaZcg7H7LGINFbhMgHsnq6jHtnf34LMTqgy5MbzklKLZNrb+ZTcQICVDaG29hGt+23GezXcoQTamqtuuYeQhUkE/kl43BtWRqEOBm52AN93eyzGsAcdou46+2CF3DONba24x7QiHDWCvGRZyH4k58FJVE6XNaCcsXtNo+HjeJ1Dgueri0NTD/A2eS7Mc28cfxqGO5nxXDx3DG7TbhNbK/Lw5oY9kClv7KLKjVRPWy1uREp2Ut4p3dhxdzW8zK0IfGA8mqNBu1Zhh8ekCZ3VBSigRFwlWIgVxg== 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=WpLkqBa/M85wUNAeDznAbws8mLk37QsYsh5epKM9XHU=; b=PTQK2xn3SFEUmvw3VSq5VIGwqzfGvHXj6UFiENsWPxO3k77GaEkTqvgLwcgxUZRm8mS+4bXxK4MIvquOTvUOOR3fzfz/TNwo26ppuyu6W8RnPOAvKzjV1CYJbS8/j5xRkWwAKtY3W4BsRNTZrRT3XiZpDRRatNtiUD3+iRv3TaWyvvFE3NcVrfOVsDz2TqdSBYgWjVYkE4Hp3p7BbqM2Z2jnZ7kQQZh0J9VwzNbzf/nhh9+T2y0mv/iazOV/GvQzcOLXzABPzTX12AduU56kZJwoUemHszLjYUFVX6QOkphGXtH75EcNmsjrTRXzvhbN8775aTll8LxjaFthQi0CDA== Received: from CYXPR03CA0052.namprd03.prod.outlook.com (2603:10b6:930:d1::28) by PH0PR12MB7838.namprd12.prod.outlook.com (2603:10b6:510:287::10) 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:49 +0000 Received: from CY4PEPF0000EDD4.namprd03.prod.outlook.com (2603:10b6:930:d1:cafe::6e) by CYXPR03CA0052.outlook.office365.com (2603:10b6:930:d1::28) 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:49 +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 CY4PEPF0000EDD4.mail.protection.outlook.com (10.167.241.208) 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:49 +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.41; Wed, 7 Feb 2024 04:29:34 -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:32 -0800 From: Viacheslav Ovsiienko To: CC: , , , Subject: [PATCH v3 4/6] ethdev: add modify action support for IPsec fields Date: Wed, 7 Feb 2024 14:29:06 +0200 Message-ID: <20240207122908.20646-4-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20240207122908.20646-1-viacheslavo@nvidia.com> References: <20240207122908.20646-1-viacheslavo@nvidia.com> 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: CY4PEPF0000EDD4:EE_|PH0PR12MB7838:EE_ X-MS-Office365-Filtering-Correlation-Id: cd573fb0-a85d-4ad6-a5d5-08dc27d879ed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NCvh/rQu0nyEayIOmsLoIq3tq/NxHHdhC0B5EgREXXwmykBje6eBnai2ZQK2tTl8wwnEaYrCienXuqamZzIrMMvuTq7WB9lqThXaYXManCX/fNKPthpekvGvbIuAZRQ35ld3zIAUdk769ROBU6yDsFfiu+dejlmSvByKzm+/TMgqXN/qVOewXvUIKXXbCz4gPD3lzyHdvNw8LvMZ8HHMV5c77IUNiAsf0sVR87Q8MMvdP4mcIZx2kwkveJbkKwpJeRAsfdY8gAwgwMXUaBGKtJaVsJ934zCE/3bod3EYpIw7HLdv2RXAbGe9Y0ZVh/x6ofnDnV0+oM8aj2F3b2FsTdzNylF4mCFNJONJ3cfuFf9AiIYX69VivZU6TTk6IX5hYz24EF1EIx+1CI5o/zmg8w1k8VVg0ntFEo4+dERTdol4on2JbzkfzfRa/2IL8JaW/f+HjsgRcAy6WmYuc/wceHecoKGUimLRPgMFNM18S0CRqOFD/vdpe9YPbnrWo0ohQ59kteOEF2i3w8ROH0PgYNi7f7TlGm3eY4S/cyufbDkd+SgKa5V+ucD+x5wkk06wsk1cbfpzgKtj/affPRBRTEOrExpWXJxs8kYddEgwu/TT2i7CTbWXoUhoKGoR4kN2QchCbxkjyU7OxrgcfAEIi3jnlQAZGoSKovadM/FvPa2MLp5dVUUbOH1az05hqAW0y2P4T6FsgnLdmgb0Mhde2Jqac0PpU6+eVtODj0noe48D7Cg3Nvmz2WylpWOoqxVi 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)(39860400002)(136003)(376002)(346002)(396003)(230922051799003)(64100799003)(186009)(82310400011)(1800799012)(451199024)(36840700001)(40470700004)(46966006)(55016003)(40480700001)(40460700003)(107886003)(16526019)(83380400001)(426003)(41300700001)(478600001)(1076003)(36756003)(47076005)(86362001)(356005)(26005)(2616005)(70586007)(6666004)(5660300002)(2906002)(336012)(70206006)(54906003)(8676002)(82740400003)(6286002)(7636003)(8936002)(4326008)(316002)(7696005)(36860700001)(6916009); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2024 12:29:49.0398 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd573fb0-a85d-4ad6-a5d5-08dc27d879ed 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: CY4PEPF0000EDD4.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7838 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 The following IPsec related field definitions added: - RTE_FLOW_FIELD_ESP_SPI - SPI value in IPsec header - RTE_FLOW_FIELD_ESP_SEQ_NUM - sequence number in header - RTE_FLOW_FIELD_ESP_PROTO - next protocol value in trailer Signed-off-by: Viacheslav Ovsiienko Acked-by: Dariusz Sosnowski --- doc/guides/rel_notes/release_24_03.rst | 3 +++ lib/ethdev/rte_flow.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst index c9a4809254..d0c3389287 100644 --- a/doc/guides/rel_notes/release_24_03.rst +++ b/doc/guides/rel_notes/release_24_03.rst @@ -68,6 +68,9 @@ New Features * **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. + * 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. * ** 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 9e76e53905..627a856537 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -2422,7 +2422,10 @@ enum rte_flow_field_id { 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_IPV4_PROTO /**< IPv4 next protocol. */ + 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. */ }; /** -- 2.18.1