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 D201241BAB; Thu, 2 Feb 2023 11:01:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BE80F42DA4; Thu, 2 Feb 2023 11:01:22 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2061.outbound.protection.outlook.com [40.107.92.61]) by mails.dpdk.org (Postfix) with ESMTP id 3678F42D8D for ; Thu, 2 Feb 2023 11:01:21 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kWchuwBqkJ4L43mxPuDq/qdmU59u6NbxI6i8uVn7b/wbk9UzF3OM+5/IAPbMHwulbRvgAhdEV2kzSk7BQHlcRsmpKz7JT734QMgl5+o/Mz+bsqPFy41KLsweOkYAl4RZte+poXJf3VdvTdyrkXgLFVx/SHcPI8OT6ooVwxtbuuLOpXdd4wz+oH6xaRWsjT5gIt/39fTn1BuCd3PpKcJZEo+4Bnnjl5ZRrdd7sk6gWKrixn4dn+DRVPgWes7H/K8riFKX8tW/fFfLPSiELeLvlSU9gDcCqKLyz07X6DYOCH3YkucnLMzXB0E1IO8HZ8Z7HUsxlmeSNiOHzShfeQZueQ== 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=yS4s6WOHVXhBk4aO5MVfH2o2I5gPUiV1Q34+mm1Q3M8=; b=DfBwQMDLqP182PmQAvxYB/+tKg81qdt0ziQTsmGwiedeGT6DFkOhiU5sgX4ydqGwKhNpMWmVzQS2xe5Y+ZeEao14p4mIDo3cr/Q+gwwlQahqky6wDxDVTR64k+RGfowrIybLTd68TVyUmSZ8rm5vJHY4KKu6cTTkYmxYhzTBOUVr2Smuo6JefEqUxOAiT5e2VwPf+4IMuaakLlmYK2h94tM9s5waqX/n3N0mVkS8CpPnsrt+DfVzWRLQs3L2G9Q6vvgYP9sQH2irJrQkOv4N8I0bdSkRDm66jUExIWxZ3ZULJuuea7KdQumEiJhJn5JSqccLLDGCOpfS+VcINi7FBw== 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 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=yS4s6WOHVXhBk4aO5MVfH2o2I5gPUiV1Q34+mm1Q3M8=; b=Mu8FiPrllb3fmHahE7qEwLVYQX5rsKDwAp39rh1XgLhOe85O69F6s7QvP+VB6QLQph7aaGG6B3tkc3BAmHyZueDaQT7JdBOqQbdXAZAvJHdUg9GBZ030XReBbnJIRntjyIjeatgjW41n/GImAE9osmE9VRh8u89B+6rVD7HJXF107SyfK5SWiIndJrDeSWhkDqyr3xnaWHKD17aMuUpJdP19JD1z/qJIqJTmBtpd8wtl2SBMTtfQ65Ev5tpBYzAqqz5sh+z7qipggw2v4ixOUrsrocQCCkVWe6QxH29Od74JBfXNsmugMgjjZm4v9EahYEfrm0z0cI/SP0Q/MBdK+A== Received: from BN8PR16CA0017.namprd16.prod.outlook.com (2603:10b6:408:4c::30) by BL1PR12MB5045.namprd12.prod.outlook.com (2603:10b6:208:310::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.25; Thu, 2 Feb 2023 10:01:18 +0000 Received: from BN8NAM11FT049.eop-nam11.prod.protection.outlook.com (2603:10b6:408:4c:cafe::95) by BN8PR16CA0017.outlook.office365.com (2603:10b6:408:4c::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.27 via Frontend Transport; Thu, 2 Feb 2023 10:01: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 BN8NAM11FT049.mail.protection.outlook.com (10.13.177.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.27 via Frontend Transport; Thu, 2 Feb 2023 10:01: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.36; Thu, 2 Feb 2023 02:01:06 -0800 Received: from nvidia.com (10.126.230.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; Thu, 2 Feb 2023 02:01:03 -0800 From: Rongwei Liu To: , , , , CC: , Andrew Rybchenko , Aman Singh , Yuying Zhang , Ferruh Yigit Subject: [PATCH v6 2/3] ethdev: add modify IPv6 protocol field Date: Thu, 2 Feb 2023 12:00:20 +0200 Message-ID: <20230202100021.2445976-3-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230202100021.2445976-1-rongweil@nvidia.com> References: <2111452.3Lj2Plt8kZ@thomas> <20230202100021.2445976-1-rongweil@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.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: BN8NAM11FT049:EE_|BL1PR12MB5045:EE_ X-MS-Office365-Filtering-Correlation-Id: 49f6c834-fb17-4bf7-4ac4-08db05046e10 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: 2mn0wtdVoboZwMxaq1Ujyy02W5u9Hgizw0i4Vp0AQoP2+GhHzsWkRnhVhDxCYsYGhNVSIYqpOrdMDmg8RtbxIiWlPFeFIBo2+/nWq3iPqGok6sOn+MHpMCEvcCtckSA1hHWKNE11iaCypy1S21PInAfs16BRBymw/DkzbxECRXOLJGjx2lxllEWmK0Hzdch5UhNWJG5Qk+kY8m3bS/k9n2cYZgip8jSPBdevYLVDF7geBkDedFkHQF1gyXrfHdNEVKvPbhTYWbV4A3XKT4GFXLChU/IelggW2ZWELsRbFEL+FQOaz+ESKKMnGd7Iq+dsC0EbYipF7G7o0qMDwfVYJrOCJC4ojOc8pq35qBBWwKge+HU2Yppp86l3XXihXC/3KvLFbzXYp1EXrjvasLBsMCLk9ENnGDdgdwGFbnd01hgF51ZI9LqPZODdKp9Zuwl+eeMD0/5BAyu/3BI9HIkcJijynng0pbbbP8ikUzcj6cZio75oMoZ6s56PRd0jFteGR59G3jlz4Zr2caRsKDt1+6f+L2aCgzIbUsNuRdrxsTZctgV/E7EmxSpSGrLMgHegycqF0d3Wgv1TwRYzxGwbdPt9mfITmnPaCbgvQDhehrEJ1x6AOXUsVOtgAdwYCh2EXkA2bXreUkeMH8EqJHfXtjeNUXj/hDhTDhbllEPgEfVTO9rQiiZo8/7uAa4u1Sq5kWLkD2L9WEmYSuXmAMW8PA== 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:(13230025)(4636009)(346002)(376002)(396003)(39860400002)(136003)(451199018)(40470700004)(36840700001)(46966006)(41300700001)(7696005)(336012)(86362001)(316002)(82310400005)(40460700003)(54906003)(4326008)(40480700001)(83380400001)(70586007)(70206006)(8676002)(82740400003)(55016003)(7636003)(36756003)(110136005)(426003)(47076005)(2906002)(8936002)(36860700001)(356005)(6666004)(1076003)(16526019)(5660300002)(186003)(26005)(6286002)(478600001)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2023 10:01:18.5751 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49f6c834-fb17-4bf7-4ac4-08db05046e10 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: BN8NAM11FT049.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5045 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 Acked-by: Andrew Rybchenko --- 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 9b9018cba2..f4797682b7 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -3547,6 +3547,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