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 41FB643A2D; Tue, 6 Feb 2024 13:18:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25BD340EE7; Tue, 6 Feb 2024 13:18:23 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2049.outbound.protection.outlook.com [40.107.92.49]) by mails.dpdk.org (Postfix) with ESMTP id 839BD40ED2 for ; Tue, 6 Feb 2024 13:18:21 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ivyJ86CejcHoJnKf4RyXpk8wdmJ/WAwGBISc2zzzHL215roJYdscNVdfWql406OvZO54EyanBUbsgON50nHxS9S0y53PIG6sX+gxrc/gIIj4rCEp40bdxBcBrG79gktOKPMz8CKS6PzHo6FlERpwmwXq4YbN/fEOGIjDR/7WoIY0abWGT4t6tXwSOmqhnzGUkreRV/6rAB/s12Y4Rmc+l8Tyoco91L+sHSt2nJb+SGNvPt7O1/4bwrxSFu94AOjp5bHeyWqzUDKrqfVsCzZKI/2vis6roXp8e3gLNRPcb5Jf2RCoqGWafH3Hq1gAvTAPVRbxKhJGWlokTvps0yN4yw== 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=Ltu2Qe7O7VwxzzmLJgTq2GPZjFPvSFpa9zwMOrWSm1I=; b=T0AYKfScGqSUIn/edpxZV85agYfM5jBxYoKQaAMfHaNP/Ao3OXWU2EYpUwRiGd4ND7X0+yHctKCYhp9fmuvlSmliWoQET0sgikBCNanF2J25aNRT09UVOphP3Ke88bI2/aB1NTfPFcjuOHCUHT/tPdhIxkpkcq6QjWKm6SKfSiPG2AeqfRQmeFID/AIk7hNwpTFbSQL/UqOZ1xMiMO+iE5/EgwdpVf3jNMrfFy8Y2Nl+cTHLdnlPtY2QKepPMnm1VMTM+OjmKhC74wb76furxagk1UrMD4bO9PJ4j+ZzHuK8WFmXChwJtGtEzbT6VmZt7TGBBiJsFbXcNMvbsvsyHw== 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=Ltu2Qe7O7VwxzzmLJgTq2GPZjFPvSFpa9zwMOrWSm1I=; b=RFdidMCw45b39OgBfE3A/hUCpxGkjwBV5NLZjzsZRByI5W0bFlXG76UANDN29QLllKnxcyaRPTANALnaMS3VTI3XNkEG9X48r+iimyWCq4VL2Eh60dCwo5Kansofi6JzhGdQTmrF5Z3O+32E/Acj76P5EAqWLXLdPWuBv9modf4wMMJbWiYmXICA1DlGX/Ab8p0XIn5U0fzc+SWlYWXrbYY2sJ778xXUv8Ax6At90IUB07cJSmgqOglcPp/0EXaXWllfbEZX8c6/sZd1BPIvAOIloeY3Qr+ufanQyan/ppd6sgaHgqlt3hY+7W5W88i2jZGunouDGFYW4b1mRF8VQg== Received: from MW4PR03CA0135.namprd03.prod.outlook.com (2603:10b6:303:8c::20) by PH8PR12MB7301.namprd12.prod.outlook.com (2603:10b6:510:222::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.17; Tue, 6 Feb 2024 12:18:19 +0000 Received: from CO1PEPF000044F2.namprd05.prod.outlook.com (2603:10b6:303:8c:cafe::2) by MW4PR03CA0135.outlook.office365.com (2603:10b6:303:8c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36 via Frontend Transport; Tue, 6 Feb 2024 12:18:18 +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 CO1PEPF000044F2.mail.protection.outlook.com (10.167.241.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; Tue, 6 Feb 2024 12:18:18 +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; Tue, 6 Feb 2024 04:18:06 -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; Tue, 6 Feb 2024 04:18:04 -0800 From: Viacheslav Ovsiienko To: CC: , , , Subject: [PATCH 4/6] ethdev: add modify action support for IPsec fields Date: Tue, 6 Feb 2024 14:17:34 +0200 Message-ID: <20240206121736.27391-4-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20240206121736.27391-1-viacheslavo@nvidia.com> References: <20240206121736.27391-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: CO1PEPF000044F2:EE_|PH8PR12MB7301:EE_ X-MS-Office365-Filtering-Correlation-Id: a93758d7-e95e-4e56-8e28-08dc270db403 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ujZkYLjQKEwZ3Vl9snNJe9l+X2DQJlm7pZ4X2JFquCAfxDpduhaAl5Uh4kmkbiQ4ttpchgARH877iAPcbASdcnrvK0Ce2MTRpcODqFZUEGYM12oM3purlKDgk7F9fSJG38C/CGL3DFxs6RJT7xtN/72PByS12ks/hZrO/cV3nv/uZBTmFrPnBocV0eWHaXN2Wn5Ffa97yopW7tsc05ihkOO4yKnXnydQOy5sE+e2kWn3ci149LoNgXp32A9+Z5Cdtnh8AwVtZeA0sl+eZRO5vmobhCnCGIv2gucMjDbdsYGIMPdOCuK9Z+6bDyrJZdj4+OJusxtNDp6M5sxuCaqhldhylK2aiEoubrwzVa8ZWq9sbWxztsoqzNgm7M8Bt6mFMOVWziMPIn5hQWh6TofL3+cfTu5UnNg1DKIWTGswEHgaWyXk0B1efLkCFhouxUrQz0aFZMzLdwv1/m6w+gMyrItqJUw8RGfOrKjfMuxTNBTpHZrqxXkexippdmxvsoyjVPr5hrh6Z/rVuHowMn0ZBF/FVtKI2DuKb+IDNZQKx7zT4WiPCVDgdd4Jx9bcVSC4u9e01IA/zw6K0QR9avkOdIzthyBqJwXIJgn23BjEaQeB4Q93V4++x8RnAzhMS9FCrnPK8dihedRHh1WiJRmmfdIKcnSXYbPQXcJGrW84QdrPTHDhf5FuHugN1lPPDUzDNAG1j5LjRBFM4HlMqZWjo5341Dmi7C50KfaRoCsG78fgUdlKNBU+yrIArLbJwrzZ 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)(346002)(136003)(39860400002)(396003)(376002)(230922051799003)(451199024)(82310400011)(186009)(64100799003)(1800799012)(46966006)(40470700004)(36840700001)(70206006)(1076003)(26005)(36756003)(6666004)(6286002)(426003)(7696005)(41300700001)(36860700001)(86362001)(336012)(356005)(16526019)(7636003)(82740400003)(83380400001)(107886003)(2616005)(47076005)(478600001)(55016003)(4326008)(8936002)(8676002)(2906002)(5660300002)(316002)(6916009)(70586007)(54906003)(40480700001)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2024 12:18:18.7176 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a93758d7-e95e-4e56-8e28-08dc270db403 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: CO1PEPF000044F2.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7301 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 --- doc/guides/rel_notes/release_24_03.rst | 4 ++++ lib/ethdev/rte_flow.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst index 3e33ff2d86..2f78009dd8 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 ``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 84af730dc7..6efba67f12 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -3934,7 +3934,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