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 30B44439F1; Tue, 6 Feb 2024 15:27:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BEB5641143; Tue, 6 Feb 2024 15:27:32 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2048.outbound.protection.outlook.com [40.107.220.48]) by mails.dpdk.org (Postfix) with ESMTP id ABBF241140 for ; Tue, 6 Feb 2024 15:27:31 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HOlCf4b7nBRx/B0ojicapTLRQdqWwPUXwwHWetkmq2E8htjByujoHnj2i5+M6vHZOYDNHxPnInVSr6eDH0AynIWuyMvz9OyAy1ByDwH1LHNCv0bTHK3/6eruXnjBFArEoYzQdV2YJhZiaR8k5Dub6KFfX2DX3GvjTUFukNpMiuJOUWDBh9GJEwEBXqkiE2iuW6APYweIjxBPCsklXUFNb3kU78GPcUffsVmfSus1PIOKF4l+zhIDTiJd+P+iTCdYuh/cjaSEnzsepAKYMqb4CyZBM49Y6c3CfeC6PynplmmejyiVftyJvb8C1nPr1pb2B+k5cuQaVpyR6WjWrEtVAA== 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=8CQ/nhNWr1ZJemWo0ywvF8CgjaMdTOZRLFvYbJ2tC3I=; b=dW+9difnXBsnYSoEI0P6CS0ET1JrWJbHYU7NjCc+n6haFHPxxPrXXtFev29S+omOlaEjX1Gzf4V88t3Q+SLsenZjf6S4uEVsSKKLrm0UbEwEaFeUJ3K8iiGhv1zyKjRZEMbgv0c7eiogjvpDYnGLpxdLzE46MxStSxhAAhoqp7OjFPNRS57dFVH5ALGdDn5b7sowPX8KhSQlieg2VhXkfC0KZE6QYyvVbfJn4vX2WdsUuS6fUIBihDWV5FaadL+UC+1/G0kIfGLRjXA8T1tx3KxFVyOndBjTg96iySoO6FIzETWA/7PtYVR/nfE1g3PCqW4frW2Y1HK8wWJs2vGhxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) 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=8CQ/nhNWr1ZJemWo0ywvF8CgjaMdTOZRLFvYbJ2tC3I=; b=JVozagMh1Efuz3pj0CS4FEbfKXNTVH0MHKpYEZrzVEoaEJJtz4QyUTtkkrjjRYcDPvpUn+dfyNcrn+nqTSkpYmzgmIvUQuPiYwifK135+RQLiH1xDsurmdtdS1uN6PtscJpI8VmCBoFHca93o2BQGlIvM2AUQvUcu6HdA1MAvdZQ3BHBRp32dJ7/RJb0dCCacRnEewIN45rd9id8kmOGmLjfts3Kl6J89iUCHOhob+ohHiwsOkH7dupNhBPooMfc+/VdNDmkyiK4Fn1Wq0uyEhQa/BP6156oCErdSOpjxseWe1k6vdG/PuemGjmDNmtOQXb0LvewUv3qVfJn9MlZtA== Received: from SA1P222CA0146.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c2::28) by DS0PR12MB7607.namprd12.prod.outlook.com (2603:10b6:8:13f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.14; Tue, 6 Feb 2024 14:27:29 +0000 Received: from SN1PEPF0002BA4E.namprd03.prod.outlook.com (2603:10b6:806:3c2:cafe::7a) by SA1P222CA0146.outlook.office365.com (2603:10b6:806:3c2::28) 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 14:27:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by SN1PEPF0002BA4E.mail.protection.outlook.com (10.167.242.71) 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 14:27:28 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.6) 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 06:27:11 -0800 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail202.nvidia.com (10.126.190.181) 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 06:27:10 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12 via Frontend Transport; Tue, 6 Feb 2024 06:27:09 -0800 From: Michael Baum To: CC: Ori Kam , Dariusz Sosnowski , Ferruh Yigit , Thomas Monjalon Subject: [PATCH 1/1] ethdev: add IPv6 FL and TC field identifiers Date: Tue, 6 Feb 2024 16:26:58 +0200 Message-ID: <20240206142658.1498907-2-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240206142658.1498907-1-michaelba@nvidia.com> References: <20240206142658.1498907-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: SN1PEPF0002BA4E:EE_|DS0PR12MB7607:EE_ X-MS-Office365-Filtering-Correlation-Id: 658c2483-3de9-4db3-945a-08dc271fbf71 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: htYWffgDTchC07xxTB5g86qoDtDEefst2h7ZAJMBHXtnAqeVr45o40jgWjOisfeNsA8htV54pdsXAHIO+XxyiQU3TXqoWQzz5O3iTUElXou0BdfAri8/h1yhDH3ffIHSFn45WT7nv8nBZleESC8mSGzD2/pY6chybjTtWmuGZYWoQ5pDmsCCsFaIhRX0ZtD/UgjaMXTEyW5OWWbDsylNX56b2JyNU4RfLNMRF6yGy6AKUXkmcar7zN8y/xoePyK1+werAMJRUBBEaW2a57IjpehojaPrQWtXB3y8JBdYI9+iOnh39Niclno9uRaqC6S4T6ACZ5RCrX7sXSpmjvLiMFpLe41kDd5DNjfqTJtwxVJGCByAgGqMOKaKYCzt26iZYBHh7YPOcw0S5HGF60ApR6q/X0gvc2bB32m786CWLsJuCukJznz7xcfZ0MhQkj4cjoKoc79Kb/F/LYZ5YFCTYOvQ7ijrFJDdSGq7QkXa1u+c4MCNlBQlesKpCul7rumFxebBuwnCCdm+7tE0uSihLzvPCNHnNwFCazSynt1PknJg/S+EjiqaZiyPkiK4iesRz0oIF6mBAKH0dPPMzYAUQ7NpY6ri1PUj7RRmLthEAqfY0ic1x/bpL2GXWAf+4W88TUaQFG17L/MCKoLpNEMjkmaBQqfyI1LvTjevblIGWDqRM8UhwNtK32AJqOgGwHAMTQlK+0mrt2NonjD3TAlJN32jh3TdRBcEUIBP42w9XqzyoB2r25uHqNK+10DMnC0b X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(396003)(136003)(39860400002)(346002)(376002)(230922051799003)(186009)(64100799003)(451199024)(82310400011)(1800799012)(40470700004)(36840700001)(46966006)(26005)(41300700001)(70206006)(6916009)(4326008)(8936002)(86362001)(5660300002)(8676002)(2906002)(70586007)(54906003)(36860700001)(47076005)(36756003)(356005)(7636003)(82740400003)(83380400001)(316002)(7696005)(478600001)(6666004)(336012)(6286002)(426003)(2616005)(1076003)(55016003)(40480700001)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2024 14:27:28.7722 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 658c2483-3de9-4db3-945a-08dc271fbf71 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002BA4E.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7607 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 --- 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 9e1048f945..a6ae4c0d29 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -964,6 +964,7 @@ static const char *const modify_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 f08bf09e7f..10268b7879 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 6efba67f12..e66c247e7f 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -3937,7 +3937,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