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 1FFA2424B9; Mon, 30 Jan 2023 05:00:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 89CAF42D49; Mon, 30 Jan 2023 05:00:34 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2064.outbound.protection.outlook.com [40.107.94.64]) by mails.dpdk.org (Postfix) with ESMTP id DAFEE42D41 for ; Mon, 30 Jan 2023 05:00:32 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fBTyG5TxHZnY9yV2VvdT02nDprsa72j1FtE2t+ElbPo/bd5VV5kHmSSNPMRCc4moX1VS2+oHwf7Z4cnM4zDAFcNO9ZsvM3Kuvh1/VeKUCHz3hwwV5NxakBLBrXooav+UwA5qRVO4h9jtjRg7pZ3X/1V5g4OGMQpz4VRvsRLkwJEai6i8QVaIH0ULd6ksL+Ha/3g3c1tEAQ840zl43nXl6nB+USvxMs33myRGsSMPK2gxipqQ7FIta2Q8+G/OjN8m/yko8WadVwib4QECQGB1UTauuG7oCJGkgBcnIPAhMToXwFbCok12bBtR5anbYPQcJpu9TD5424wbCKDE/hk02A== 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=Nz/C6kKRNpi/F+tdDfVosdWJvSlr7L/t2OfkBJbJAV8=; b=dtJ4yjNvtCsT4saep/KZW8Qi76oXtb/0ieLEMM4wlpwjVqW1FpdPJ1ma1XXBLG8We1HwAi0eeg371TdNxnml5VqW83dzChn4rCkH1w+OJS0pC8qna4ksgwK/W9mf7kZVLBRJLd9Ukvmd2/aEKW0Sl+CDXI6s1bX/dOwJyNEsDlChdEzeunkFOmiviiCQsHgdpug50wmffhlmOoY5b0HL14MhOI2UFAkwOt21jLCW0lrmEkUidrrI2uVuc+wctep7ZMnk9EoyUoNQO5RNq0qrK19aIuv2Sz7pGPVDizmDAOzqE6S+UYLJeCfcUOvoK3aCjEmFozgcIgF5lCyzRlpHoQ== 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=Nz/C6kKRNpi/F+tdDfVosdWJvSlr7L/t2OfkBJbJAV8=; b=i8AEettqrcaJIjFlDs0z5D38s+eLz7jrdTzvMjMCpMfs6H1vhg5YwswEndtafMHUgHdMPguS7f7HB2PQ98WKkkucJwXuCVGNa3bCIc6bAnYpz/UV+U+M7LjUs2kUzTHFpuu5rGf/sUgAzBajxhJDlk/sQkQyzS6Jy/bEe4qM5YEleG4laYvbEkti9KSNvh3qO5+ZthxWZrPjE0TvSdlYNTshPTzbmnAtCvta4VM+89gcRh5uN0S9ROndFwcdXAVlsZqvt2rZJ7E2JmqZ+/C0RaTpi3yuFYRgX18lzL0yGPmhjPXU6da7p1wC+umnqzH4/XTdAekiCte0SQSnGn4JXA== Received: from BL1P223CA0018.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:2c4::23) by CH3PR12MB7715.namprd12.prod.outlook.com (2603:10b6:610:151::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36; Mon, 30 Jan 2023 04:00:30 +0000 Received: from BL02EPF000108EA.namprd05.prod.outlook.com (2603:10b6:208:2c4:cafe::e6) by BL1P223CA0018.outlook.office365.com (2603:10b6:208:2c4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend Transport; Mon, 30 Jan 2023 04:00:30 +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 BL02EPF000108EA.mail.protection.outlook.com (10.167.241.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.19 via Frontend Transport; Mon, 30 Jan 2023 04:00:30 +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; Sun, 29 Jan 2023 20:00:13 -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; Sun, 29 Jan 2023 20:00:10 -0800 From: Rongwei Liu To: , , , , Aman Singh , Yuying Zhang , Ferruh Yigit , "Andrew Rybchenko" CC: , Subject: [PATCH v3 6/8] ethdev: add modify IPv6 protocol field Date: Mon, 30 Jan 2023 05:59:38 +0200 Message-ID: <20230130035941.1495874-7-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230130035941.1495874-1-rongweil@nvidia.com> References: <5da6632a-0976-dc1f-facb-f778c8aad8e6@oktetlabs.ru> <20230130035941.1495874-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: BL02EPF000108EA:EE_|CH3PR12MB7715:EE_ X-MS-Office365-Filtering-Correlation-Id: 4ec43e43-ffb0-4f27-6ed5-08db0276877d 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: 3GRlGZHBGdNqbvAB8yhp/S/fSecSWJZ8UkvKRjLX/1BR9zsC0lrAvV7NLsuV/UwrQaSvTuAehGAy9uqzAFcWSfJO3fjUCkO0pdJYld0J15RI1gFzw9qUyiRcOKc5DWZ0ryfHKslMuG0BrXXq6GO/XYsyVe2jJOvvx3WMIm/Ot//l2obq01AV2WNvljSpGU00SPo/jiio4bHMybgPFqj/htwlsydlUqSXNsVJOb/gFypyeNGphoAIat7fmuG7nB3aI1RtXHG76eVA9ysop2pXnV5mumDGk1PvQSW0g2I/Ebv/amPVP4mLqQR3c5VHq23s5wy/EipSjyMMzg45TBb4Mo963EN9Ix5mOuQ/ZojpPl9GJOrz5in673n90OmVoBFQTztTyy8lghzicQS5Q8n4cbRinFJVyUyMFMTeiUaoCYGLkaLO2rkMwxwsFSmfJT5YCj0pcRjk60nLkNoDwnAXzY4wot/dTrET+pCfIvXrToXGK8vrDz9n3P2uW4N8Sp/U4eRcSVYfBsKCzsmJ3lX/4WDCGI9pokztw0zkDyDLBIjHHSFx5E1QIzrExuF+ybtyIsTc5hxEP/bqkUxhouxXjhtF3HH6Vdk35PZGOLWHBa8mk2jvQ8s+L4Rr8Sr57458q3H9olFXPtOASjXUIbgODGEX5tTtnGAZPX7dzML6lYbhnqZIUb+eGc0QO6XqsX5rcvFChjdtrW+1dDz0qQN3Lg== 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)(346002)(39860400002)(136003)(396003)(376002)(451199018)(40470700004)(46966006)(36840700001)(5660300002)(55016003)(40480700001)(36860700001)(36756003)(82740400003)(2906002)(40460700003)(336012)(426003)(478600001)(7696005)(2616005)(6286002)(16526019)(186003)(26005)(7636003)(82310400005)(86362001)(356005)(54906003)(110136005)(83380400001)(70586007)(4326008)(70206006)(1076003)(47076005)(107886003)(6666004)(8676002)(316002)(41300700001)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2023 04:00:30.3410 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4ec43e43-ffb0-4f27-6ed5-08db0276877d 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: BL02EPF000108EA.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7715 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 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