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 9A56941B9E; Wed, 1 Feb 2023 12:35:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A96AB42D56; Wed, 1 Feb 2023 12:35:46 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2047.outbound.protection.outlook.com [40.107.102.47]) by mails.dpdk.org (Postfix) with ESMTP id 648B0406A2 for ; Wed, 1 Feb 2023 12:35:43 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UScJ3bRwG10yS6170NpeGV49HgXNHSiM9Lbc66QtRcemnemvGck2IqRy41sMhMKpS6dehocjyyJ/Ozqfv8VGZaUDD1vCIn8MqcvlNdHvyPw+C5jM0TBPqUaNuCBrAIiOt7QU0fF2ycNtl0b7Htn76dNLvhcP01An63A7ZZcE5sB4CtNPpjApiyHh0EC30FzBGxGqnVbDPAx9AJseh51WWwQltduFJF9EjRA+lC9Cm2vZN13cCYLTVctM/tWOz16Z6Dvv+g/0EcNW9uAjmopSSy0+wmZeP4lPsYMT4eycNV6Z5nCgIztL5Xc3ZX0mpBwcGovg+kAKfwJWsWLAZUOF1g== 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=eOY6MGJoz4AEBVFtaDJ4xbM1hKxTjsThMO1MG6pIYTY=; b=XXHZ7D30YvBREuzS4eH42b0HtN72fPd193ZnUWCtJdEcTISWnyNqsvFkDiSmymIdQY9yKyuGvE2uzdRllhb5CGqTlcJh2i5pld/1BrY6T3A1ql0yNXU4dSCcvwjusUR5xRAYrRivR4MGVuhcQk38J15QwzWQFXdp6Lpaf9qv/KWtJXRpHbV2u3sHvZcpDixpE2v82NbbJRsaOMBQjruNODFdzu5Dy4T1p31v6ClfruqryRFTqdkPDcEmyzVSUsIoli6S4D3QhfUFBepcJxMTds8DQ/xHSKDryNH6f7Si/JHH1NjuITR8VRyW3fGtIp5W+2DQUCMUGYyU0/4L6RSimw== 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=eOY6MGJoz4AEBVFtaDJ4xbM1hKxTjsThMO1MG6pIYTY=; b=Y2aw8r6TsqajAz/0ybsCjKlc3f9O/N5z4L3MrfeTn3NTkUYUmQwIDyKTlG2FkgU+Ot8uWa4V98kDuqenI9C2dPfuYsy9XgyC6RJnfTNlf+deTcHMl3tnzO6OfwluI2cht8C5qCqwvRd7UDzry3NvJAvzvQk+Rx89vw5qEQY5WFr/w0ihJMeTNioJjtU2Cu7mj3b9A1gwrGPAM48dL09c0pnlj/9wq3k522fJQ+tpjI2JFQLlBa4AdjuupvgTr6M8d+VJWPcfOHm16sUllUR48d88yi0URhV/nyPU6BArgT0bswEtst9qexO45CJAkshFvda5ea0xuSmSSPE6/N3EMA== Received: from DS7PR03CA0256.namprd03.prod.outlook.com (2603:10b6:5:3b3::21) by CH2PR12MB4070.namprd12.prod.outlook.com (2603:10b6:610:ae::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.24; Wed, 1 Feb 2023 11:35:41 +0000 Received: from DS1PEPF0000E642.namprd02.prod.outlook.com (2603:10b6:5:3b3:cafe::4a) by DS7PR03CA0256.outlook.office365.com (2603:10b6:5:3b3::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.25 via Frontend Transport; Wed, 1 Feb 2023 11:35:41 +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 DS1PEPF0000E642.mail.protection.outlook.com (10.167.17.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.17 via Frontend Transport; Wed, 1 Feb 2023 11:35:41 +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; Wed, 1 Feb 2023 03:35:34 -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; Wed, 1 Feb 2023 03:35:31 -0800 From: Rongwei Liu To: , , , , CC: , Aman Singh , Yuying Zhang , Ferruh Yigit , "Andrew Rybchenko" Subject: [PATCH v5 2/3] ethdev: add modify IPv6 protocol field Date: Wed, 1 Feb 2023 13:35:10 +0200 Message-ID: <20230201113511.2362188-3-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230201113511.2362188-1-rongweil@nvidia.com> References: <0c02f3bb-f733-b534-86e5-0cd047d927ee@oktetlabs.ru> <20230201113511.2362188-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: DS1PEPF0000E642:EE_|CH2PR12MB4070:EE_ X-MS-Office365-Filtering-Correlation-Id: e94ed73b-1a30-4fc3-7b43-08db04487306 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: Je/ELPVabOkoTqviP6FbuikdbAYtiWDw7fKQ2Sd6L6/dWxA2uGqQ0iQbDflDx7OI3mGzwt71t/5XvkdgI1oNYG1BAQ0FKmG5wiuyiyvIgGrx99QL2YIYXF+q0D2x+tQO5JNL8xuQ1sPuM0BWNzyOvJ/OUtXxwDsqvO6M0bitX/O6JrvjPMJTBKRYQqYRoSwr+pHaWLNgHxi6gDTnDNu9+Qrf5aiRjXTDSASEWZ3mQxamTD0si54K5Gt2zXyXE1ORBMQy7ihcHdqI3IdMcOV6yfiHSZrK6/5Sed3QXM2SNgQjTEAS89e6WYICH/QlP5c7cSgY79ydy2FmGhvomeyRtZkwmQHTLxniELY/m1EPZIl/67qwUVeEguOKqSo6gAgF9JDOHedRCfJi2g5qEQ43CAUz5v7ybtWvD0Tw8v5nGW2Q8kA5cqqxmkEm8tNnpe6q8BcylAIsoMaxC2fPCvf++iMem/zyZASnGTy5j8BZ4a864JlyQVPY3BAv5n4nJ5YFIj0TG+k6ELJ6MwjA3exyUE2dR133ditDh1KQ/XqbS1b7g9Cg4nM5+4V2VgwBsns9tnApsNgm/tar5L0XOpZ7b35SC6KeLMRRcd687bDWXmFJ3JyGPFu4st5oST0mS/R5fmLB6/rcJK61F3cAXBUlSNP4j45wTNFfg8pjaW6+Ut51HzqJjlChE3JcuXJcj5lE7+LyVnHu9sL5xbS59/ssSw== 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)(39860400002)(346002)(136003)(396003)(376002)(451199018)(40470700004)(36840700001)(46966006)(110136005)(54906003)(36860700001)(40480700001)(5660300002)(316002)(36756003)(55016003)(8676002)(70586007)(70206006)(40460700003)(4326008)(356005)(8936002)(41300700001)(7636003)(6666004)(82740400003)(2616005)(478600001)(16526019)(186003)(6286002)(82310400005)(26005)(86362001)(426003)(1076003)(83380400001)(2906002)(7696005)(336012)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2023 11:35:41.5299 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e94ed73b-1a30-4fc3-7b43-08db04487306 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: DS1PEPF0000E642.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4070 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 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