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 A7F50A0540; Wed, 21 Sep 2022 12:19:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B12B41181; Wed, 21 Sep 2022 12:19:59 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2065.outbound.protection.outlook.com [40.107.92.65]) by mails.dpdk.org (Postfix) with ESMTP id 5A2644282E for ; Wed, 21 Sep 2022 12:19:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OjhF27AZKb4LN48s0sECiFC9Xa2U0qg5HyVGMcYW7c6LUh+pylmFMDFkadwxUjEMocRhWRWsGBf9I4IyTfoN1OuQygtP/h0jnfrW3y9pa6oUurxHepBkycNhDK5uf1WFLuD2XIS1E26vvlud2Z27A7dl1dpkj3FqIzdi4yGFAO1d9+l9hVhA+hcl2FMsbX+mV2O3A6K1dJbP8sr+6kZUonWDmxhK/23+5AVkzhN61ruVgeRMGh6ERPQtf0CNt2yP3L1Z5uJqzyznQ7vNGCmYFx38PcBx++oshNlztXdg9njJBoNzLN+8wQbWiiM7qhc+NULnloWx3fSTgq3jreyK2w== 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=GyLhd2caQsicVxqIPvCZWetH6OfFywyhxyz5rwimEgg=; b=AyCSH3uXx8Yu8Ex7radDXUf3mulw0WYzLrxaikFpPjdDidmXsjzk73PITDJvK/qdefQB1Rvjw5A92U2cm2lPCYe3yKrr7jSTMupw5/VSCaO4w5nHUXF4ak13ZowNKwgwNDMz22eaeXCCOnjT19FWEicQ7+YW5rhHskhBZQAzE6BKzf0ibnXV4yfUAA1mQskEzMTKLx911D7zEbH7m55usjbDefkLgEtCXdJXwwsVsvc7TJAJ1dWnPQqOHXrkHy+I2bllCaZNHyq+wNnnJLTteCZQi4+qqlIpovmiLb8Q8HnG0Ozfavvwh7QbIW06C2A04mb6mQsahoJYsmAO1D5r0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.com 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=GyLhd2caQsicVxqIPvCZWetH6OfFywyhxyz5rwimEgg=; b=l7B4Pqp/Kmlc/x7wfdBJ/zt8NoGw+zJDdCj0QVGFe8SMJ8924GJSr2O0nDAdSIpltzC32NpIYRFoYqQSaIdfp1idYRHQkTl8eWN3brA1co8gKtwH9Jbxy5e4ZhGNmRRM+1fkLc7Qi2qqkgBTsnhVkh3UpqqJSIx/2eINrFm/mM7A0xXMqivNDkyinRvYo1XHwz3bB1YYBtnxIsvEcs0PBgLfCzIFkjJixfTsfGY3kPVJcUl38w0kKdyPRih83zJ1YJTt6u5mQAL2x/4FJH178UNw2Trpkf21fRhO5RxpWppu51vuP6Du5Qx9xPhTHfluoPo4t9dCVvetI+TBtGLMzw== Received: from BN9PR03CA0043.namprd03.prod.outlook.com (2603:10b6:408:fb::18) by SA1PR12MB7444.namprd12.prod.outlook.com (2603:10b6:806:2b3::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.17; Wed, 21 Sep 2022 10:19:55 +0000 Received: from BN8NAM11FT114.eop-nam11.prod.protection.outlook.com (2603:10b6:408:fb:cafe::ab) by BN9PR03CA0043.outlook.office365.com (2603:10b6:408:fb::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16 via Frontend Transport; Wed, 21 Sep 2022 10:19:55 +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 BN8NAM11FT114.mail.protection.outlook.com (10.13.177.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14 via Frontend Transport; Wed, 21 Sep 2022 10:19:55 +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.26; Wed, 21 Sep 2022 03:19:39 -0700 Received: from nvidia.com (10.126.230.35) 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.29; Wed, 21 Sep 2022 03:19:37 -0700 From: Dariusz Sosnowski To: Ori Kam , Aman Singh , "Yuying Zhang" CC: Subject: [PATCH 2/2] app/testpmd: add GTP PSC QFI field support Date: Wed, 21 Sep 2022 10:18:39 +0000 Message-ID: <20220921101839.1711058-3-dsosnowski@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220921101839.1711058-1-dsosnowski@nvidia.com> References: <20220921101839.1711058-1-dsosnowski@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT114:EE_|SA1PR12MB7444:EE_ X-MS-Office365-Filtering-Correlation-Id: d9040860-c6dc-4ea7-11e4-08da9bbad473 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FaA4NNHAdqQf/VrPDdVsNDWNO4SW9tCtiDM9jaDCTmRZe4XHibh7rba1abjcQtkHZP/XlL3WD0IRzH2ctA0pxKWpnPCPbfZpohwKTIPzDeROCZbz3BEyJXgbAvGKTsm9g9K9i3Kj9mAMv6V4gmQXG5aeVL/kKtnhawixxFNaK3utBl3eTweq5ZloMnPEHNv5lwqb04s0su5mZEozYQK+1VeLrD4IwEpmiG3Djq33GmwJfx3X3hzhLEGRcmij8kjE2/Z8do3ZRd4XWwUVz964SCB/Cs938YJfN0YIX1m14d1FPokBpobuLLE7bzuRILek3RtoYjBoQRr4LuZ94cjEOjfTfoDqvE3ztfMPXzI3GrwtMgfz03VG+eHP5eSZ/XKGEcpBqi+8azgDpm5yT0trsfo+KNXQZ/1x7kKkD9jmnteWEjAgAgK+hI/mQ6ymreyBgJPSCHPU2FsRMvDwr6IPiP4pibwvYAm4X9/CHBhDYpdeTBKcmlRbd8brDHO+5JIEmFPERjd2vhojDNyUMnI6Lfg2wi+VtxXwLbV97dTW6Z0Tof02jnDNSr2kyvk3C+NQa3e3nXd5+MTEC8KXWoqwmZQPv/QuNuSef01pqkjVUsE8pUbhO0l7qNyIkOV+lx9Tm8YyonXd+RKUi+tLKR4cvi93fSPJ4fnEt4JDHwQxpGIOalEtXfmU287K9Rqh/9VcSCIyrhDXuBpU3njw2fzknBqRj7NShiTewvn2Pv8IJLTUt+BdwZ3OxuzoFY0RIvA9qayEKW1/fN9XZmBdRdR0pw== 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:(13230022)(4636009)(396003)(136003)(346002)(376002)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(5660300002)(8936002)(7696005)(70206006)(316002)(83380400001)(2906002)(4326008)(110136005)(41300700001)(40460700003)(6286002)(47076005)(1076003)(186003)(36756003)(70586007)(2616005)(86362001)(40480700001)(478600001)(26005)(16526019)(8676002)(336012)(426003)(356005)(82740400003)(55016003)(82310400005)(7636003)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2022 10:19:55.4848 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9040860-c6dc-4ea7-11e4-08da9bbad473 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: BN8NAM11FT114.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7444 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 This patch adds support for specifying GTP PSC QFI field as a source or destination of MODIFY_FIELD flow action in testpmd. An example for copying GTP PSC QFI field using MODIFY_FIELD action: modify_field op set dst_type meta src_type gtp_psc_qfi width 8 An example of setting GTP PSC QFI value to 0x1f using MODIFY_FIELD action: modify_field op set dst_type gtp_psc_qfi src_type value src_value 1f width 8 Signed-off-by: Dariusz Sosnowski --- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 7f50028eb7..b9673314b1 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -796,7 +796,7 @@ 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", NULL + "ipv4_ecn", "ipv6_ecn", "gtp_psc_qfi", NULL }; /** Maximum number of subsequent tokens and arguments on the stack. */ -- 2.25.1