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 B1AAD423CB; Thu, 19 Jan 2023 04:12:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9036842D88; Thu, 19 Jan 2023 04:12:29 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2050.outbound.protection.outlook.com [40.107.244.50]) by mails.dpdk.org (Postfix) with ESMTP id 275AB42D89 for ; Thu, 19 Jan 2023 04:12:28 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=apc+e8/NmVbc0MQR9BpUxXFNYju2nH+T0Z5llKiBGjN5T5ID9FE6tsQicxxSE3y9jFw91OhTBwKR0ckUmnWaXrzV4/sF0/UL8lZEtLplJWL6orJMGsZTx/P4nE7UuQYaUokE4O6OgvKX3N0z5WFbRC2vowyWUmvmI5/e7inOLDcN1fXFABm5nS12IGEgaQNvbtXHI16JP1P2uhwaVsRWQ4y3McUoPmgel/hdH40Pxk2QARw2NrkITpPDG61+2Zsa0WdeQ5KxWIiIamG2d6TVTvGhZWnIpl4JLmFUf59iUeXPSwslecL+xWmQ6UuqLI/mz1VRzIJDrvBxw3hqvwqqlg== 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=X4YYuqlvuFhodHs1drFfZCpCcyJhEwJcTMYf6vAVTCQ=; b=Xc/jnNwNo2i02vmYYJnxicpYtCCZGxtcu1QGyqw4XcOGYvyl37npEMQ7t61VgKa+kcuN3hB9qUNxyCYwOTBJ4vH7av52akta6n+aie1o4ik113MbJLfYdVrdSkWYFYSbJucl77xu4dbkxO3ZE8f+4MBqtM9WZou4M32EAslsUQ3cxA8GXVxZtKTHLaeIN2LqUrhxC/OD+yHtUQuxlJp9stpKJoeMOAo6zBB3zgQICM1nGaYVPxiHKiO5O/yZ9lbbjGOV8dVKzHC8q71HybQ8UK+cShziDs7gewgN7Jo/e11uuEjckE97264XKfWpzjTPdoUIRi0VtFltgivcN9DFXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=monjalon.net 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=X4YYuqlvuFhodHs1drFfZCpCcyJhEwJcTMYf6vAVTCQ=; b=JSoQ7jnf5M0UuDetnJwNVSqNLpyXs2ytEEV9ixIpf+3ZazJMQXNQaY99OZ03YKG0tgRqW9EEXqe8bmP18sEhIixkMYcG4+E5Wv9yWK+yD+s8q9a/btQGmZoV3CRz9eTeg2E2fM0O5kRTA8jKaH1xNHZ9eGhpTtoxNIUMcNTX7ljZ69FARhkuyyyrOHakfica6rCA0evZ840bM8+M2ha9U9xAf0tmg3/ceJtR2oI43r/QFrLsOXwSWIofqN9y9S3XEypRh0CvJ3qj7wxy6Hoi5JfF9f/8TL4Fn26Bldtel5DZtwhorOx/9UQcuhTUo9ZmnxUTKwVPUCIbNvuVw0hFvg== Received: from BN9PR03CA0301.namprd03.prod.outlook.com (2603:10b6:408:112::6) by SA1PR12MB7319.namprd12.prod.outlook.com (2603:10b6:806:2b5::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25; Thu, 19 Jan 2023 03:12:25 +0000 Received: from BN8NAM11FT036.eop-nam11.prod.protection.outlook.com (2603:10b6:408:112:cafe::7) by BN9PR03CA0301.outlook.office365.com (2603:10b6:408:112::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25 via Frontend Transport; Thu, 19 Jan 2023 03:12:25 +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 BN8NAM11FT036.mail.protection.outlook.com (10.13.177.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.16 via Frontend Transport; Thu, 19 Jan 2023 03:12:25 +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, 18 Jan 2023 19:12:12 -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, 18 Jan 2023 19:12:09 -0800 From: Rongwei Liu To: , , , , Aman Singh , Yuying Zhang , Ferruh Yigit , "Andrew Rybchenko" CC: , Subject: [PATCH v2 6/8] ethdev: add modify IPv6 protocol field Date: Thu, 19 Jan 2023 05:11:37 +0200 Message-ID: <20230119031139.621217-7-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230119031139.621217-1-rongweil@nvidia.com> References: <20221221084304.3680690-2-rongweil@nvidia.com> <20230119031139.621217-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: BN8NAM11FT036:EE_|SA1PR12MB7319:EE_ X-MS-Office365-Filtering-Correlation-Id: b833f907-654c-4ca2-1270-08daf9cafd89 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: /n6PUW/LBDikY5V5G4lGrFVQgGpfdy6npQkFwZIJ8lRKMNyCCjKk6nsZIVrnOB2q53x2OFr0vGxYfoThiRUxZXI9mkEFZbex9iuprQNkrUQK1Fcozn2N34yabct0DIvmrr2QGlhUQS3ANIzPmq2iPTwC0nPBd0dsBd5j2FTjme0GCHBd1qgx2CEvkf30sX0t1dds3nuqYOA6sz2+jMx33PLRqmx8mjqkdIDt0+vAuWyOoqyoyaYstWJ5WqrtCAirlZP8jjsKVGaLCkqXJWk1e3N/GA9uZ9tpl61TXetiR+L9kCZEUZIMEAwYbr5koyDPiH/8nu3Miz/26ix/ByFZcqUVEe9OsefjqBYiILo0Y5KwvwRHblzRSwgbAEONJiicG+10N0vewxTaEb7Dh3BtabeP9ftSFszdyM39pTZ3kRW8x7pBZGSp2jwWUcS9pugHPzP46kU52KSYfI5336FXGnfPUwWBSfm3FeLfJvG8D2RWm0E0NiBrXQ6I9i4j1hXVkM8Xn78bPv2ej78TY3tPOQV+40H8oqHyCC+ez5KWsN1pXAnhhJBeTiYwaUeuia2CoJ/ycOSVvdDWVo0PyhsLxdvoQc1XKCUHV+VDDJxc1jJbv+LpA2v6I9vZGnFizAb2aEl/8m29ukgAKYmFw3E3puC3xLxDjC3cVeMgkl5d1GwXL4O2GHlOo8BFZQZUeMO33WJcPbxHG71SfWrMuiPrww== 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:(13230022)(4636009)(136003)(39860400002)(376002)(346002)(396003)(451199015)(46966006)(36840700001)(40470700004)(82740400003)(36860700001)(40460700003)(36756003)(356005)(86362001)(7636003)(8936002)(41300700001)(5660300002)(316002)(4326008)(70586007)(70206006)(8676002)(82310400005)(426003)(2906002)(55016003)(336012)(47076005)(2616005)(40480700001)(1076003)(83380400001)(7696005)(478600001)(110136005)(54906003)(16526019)(26005)(6286002)(107886003)(6666004)(186003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 03:12:25.6644 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b833f907-654c-4ca2-1270-08daf9cafd89 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: BN8NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7319 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 4bdb46e89a..1340cf3a9b 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 0120d3e7d2..05a90c8201 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