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 8374541B8D; Tue, 31 Jan 2023 10:37:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7010242D2D; Tue, 31 Jan 2023 10:37:49 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2046.outbound.protection.outlook.com [40.107.93.46]) by mails.dpdk.org (Postfix) with ESMTP id 11E7042B8C for ; Tue, 31 Jan 2023 10:37:42 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TIIt1H+LChnicdsL5Qyp/15A/6Gx3Se+8eahCMReNGHoYjyjqKxKwSdZoMxH+2E2zOx3YW/sER2FxKQ8MRd2gg6t/WCnGeFCxVyCBiQG1LV7JhmAqk5lce8OZzEOGG4xbRTmfdrAkdb2V59Oqg1W52KdDgqpCJUMr5VRliQt4FzHqXvHBRbGm2u27am23q8vW/uBPygpHpFMdG6YoJE7CGDD6srcXBnaUbiPTdqdJDC/IWkvRrfNYDoExWLnCUMLJkoIvi+2hBmkXYTozUK3nn9hT0hOwBVCrOQRfBWRTAylnBBsPvQhXNJW2HOu8XwYq5NMvnzzI93HbT9rTuRu3w== 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=EAN4cUv9PM2/kZQpJPO9NVSWwBYIIybONBAoPUw5SS8=; b=VMnnBRHWs/HgeAHZuQlRXqsuML3iL1Bq/nzSEEpQhA0DXL1exwVgwbRP5VRN7l1g+BLS+xcDapFeghNf80rbz8dyZApOSg5Q7FbNTIqFrYiFUD5WeLGzhQbJoXYzmLaiArgZ1mjn8yJb1/SRXWSnxuMkUtVmydLLytCgScooMFPkaHCkOLavgAvBspz+H4158TPjTlUPX+d5odfH1mkb4sO2t9KyA3ANc0QeAuWuRY7fkRvkyPW/qBY5DTN9Zxqufyjr2QwYOzuoRW9dt6k4S+POU2i32BjOywrHI62e9/xPr3XHQvJvmDWYY1gz3h88HKlQ29uB1BHfTdg9rPEtzA== 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 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=EAN4cUv9PM2/kZQpJPO9NVSWwBYIIybONBAoPUw5SS8=; b=lfB7AhuOlDE0e/s00FGv4aJ9qZG2HrJ+O6a2punFIl2JtT3wqQLAY9GOKPNybheA7R2BQcnu7Ku9I68bicfKLK5Gv/Dx73g0d8GAjRC3RZ6lSnaN4OqHLSV55auQV4i70PXZKhG3aESuNHsAxCvl/48i4BiBanw0/l8FoBusSJX9VZClKkf6GOrkNHpHojrcrkuBOqZ8qDw5IFTIuCNcZeLgKFA0g6wQoIUBDnbdeeyFGVd6+xzj/SgD4xjXvAdK8C/Whm5jSjZi3ZS/gn54Psw2AzlJJUsmzw7+pZyywF5NwwoqPUBe5srdIfFB45nWmFgCdWxkhoefr0B+ktGu5A== Received: from DM6PR06CA0089.namprd06.prod.outlook.com (2603:10b6:5:336::22) by IA1PR12MB7759.namprd12.prod.outlook.com (2603:10b6:208:420::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Tue, 31 Jan 2023 09:37:40 +0000 Received: from DM6NAM11FT102.eop-nam11.prod.protection.outlook.com (2603:10b6:5:336:cafe::7e) by DM6PR06CA0089.outlook.office365.com (2603:10b6:5:336::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38 via Frontend Transport; Tue, 31 Jan 2023 09:37:40 +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 DM6NAM11FT102.mail.protection.outlook.com (10.13.173.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend Transport; Tue, 31 Jan 2023 09:37: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.36; Tue, 31 Jan 2023 01:37:19 -0800 Received: from nvidia.com (10.126.231.37) 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.986.36; Tue, 31 Jan 2023 01:37:16 -0800 From: Rongwei Liu To: , , , , CC: , Aman Singh , Yuying Zhang , Ferruh Yigit , "Andrew Rybchenko" Subject: [PATCH v4 2/3] ethdev: add modify IPv6 protocol field Date: Tue, 31 Jan 2023 11:36:56 +0200 Message-ID: <20230131093657.2240006-3-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230131093657.2240006-1-rongweil@nvidia.com> References: <20230130190218.0f6b1b5c@hermes.local> <20230131093657.2240006-1-rongweil@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT102:EE_|IA1PR12MB7759:EE_ X-MS-Office365-Filtering-Correlation-Id: 85e1cc7a-eded-4c56-3def-08db036ecbd0 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: Z0b1RFxUxxbtpkxpsEgE2t4sD81oCfeTeo77J2+7mkzAhbyvSKa6PAwOJM1Dfe0lRSoBohiHgBpMquSingktiiD2cC0qSdduHp350bGXsytNNzh2iH5azw+u+efxzK2dMVQKtmqnBqjuMapSAZ/JR6NlPl0crT6AEfdZ+jj63+WeEiyBXq8vXg0H/GAcSpEeJY51f8+sALwHPqBmrYmEFK2GuVjTxxbk7AEVqXzGadmv5rlePh43RD4VVw6Z3CUbhaq4HrEo11TAYJISj/Ry8R5B8Eu2a4HBbzsyo91PCg65GUykxFCWsG9Wsi/4HHLGtlC2RX1ywEm+WxX0xrD1yGobP/RfQQyMurDzhwMerAema7XvJ92th0av+b4GVKX+gjG9rjhsYnrD5hpDfoQcgQSjc45qRA/iPnmg/jr2q4PILqIpzFYLK4B0Wz7OaTGsYZnXVjbvyE7uy4brWORL6ONZjoPKBsv47VyQu4KbbYuObdzYwXFrzLZOXMl6n+RQR/RtscqWur7d6rco0T3gAIQzeJ7jJtLg1cPT343uvaAhVX9pb2O+YUKcnQvFesUlKBjY0qol1g08L/XXuOib5mZ/hwxQwA63gf8zjlYhl5xn6vRFuVQrnaMHwH36MLmB4hn1enT/C5NUcwToP4ElLjHtAhAHL41HxWRkUbvrH+qgJ8zNJ5Rb1OhKklvfv6erV9VLVay3XxO9dFrNZvhNhw== 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:(13230025)(4636009)(396003)(39860400002)(376002)(136003)(346002)(451199018)(36840700001)(46966006)(40470700004)(83380400001)(336012)(47076005)(86362001)(2616005)(82310400005)(7636003)(82740400003)(356005)(2906002)(7696005)(26005)(36860700001)(36756003)(1076003)(40460700003)(426003)(186003)(6286002)(16526019)(478600001)(55016003)(40480700001)(110136005)(8676002)(8936002)(41300700001)(4326008)(54906003)(5660300002)(6666004)(70206006)(316002)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 09:37:40.2202 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 85e1cc7a-eded-4c56-3def-08db036ecbd0 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: DM6NAM11FT102.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB7759 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 IPv6 protocol modify field definition. Add new modify field destination type string: "ipv6_proto". Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 3 ++- lib/ethdev/rte_flow.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 7a8516829c..b8156ebca2 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -811,7 +811,8 @@ static const char *const modify_field_ids[] = { "udp_port_src", "udp_port_dst", "vxlan_vni", "geneve_vni", "gtp_teid", "tag", "mark", "meta", "pointer", "value", - "ipv4_ecn", "ipv6_ecn", "gtp_psc_qfi", "meter_color", NULL + "ipv4_ecn", "ipv6_ecn", "gtp_psc_qfi", "meter_color", + "ipv6_proto", NULL }; static const char *const meter_colors[] = { diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index ff9270690c..70b910b73a 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -3549,6 +3549,7 @@ enum rte_flow_field_id { RTE_FLOW_FIELD_IPV6_ECN, /**< IPv6 ECN. */ RTE_FLOW_FIELD_GTP_PSC_QFI, /**< GTP QFI. */ RTE_FLOW_FIELD_METER_COLOR, /**< Meter color marker. */ + RTE_FLOW_FIELD_IPV6_PROTO, /**< IPv6 next header. */ }; /** -- 2.27.0