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 AB72EA00C3; Wed, 21 Sep 2022 16:33:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FF634067C; Wed, 21 Sep 2022 16:33:10 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2085.outbound.protection.outlook.com [40.107.96.85]) by mails.dpdk.org (Postfix) with ESMTP id 9FB364014F for ; Wed, 21 Sep 2022 16:33:08 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NIa2/EJdJgrsa3wexvS+wzYGx8R8Gn11Ii/ds0oI7JQK08GGiN7Q4J1TajU8upqKQiIaZG9a5Ua1F9kzPNgsu/fZDTVuzYsocCbuPJ5gN0dxa+G4Vh9+tzdlyYM5DjrBKmxqZjlATCQDP2BdLO5pM2JHfrOHUt3/JCCwhFu79GBhpgqeBu+vt+obFOdBLpmn1Aky6KgVlp6y9KPTYUEMdijD+QuRjQkWVpwfbMuoEcRKKQ5IJvSadlEtHjVE8f6ox3C0tXfccX/BC6q/S2BhjMYRY03J36lt2AsEcbse3eBpDZoWhxBDJ7qIGlBlnorT4AWxKALRZDGeBF/J5o/c9Q== 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=r4bt6pYOBoYVH2UilSma4dN3eL6ZH3EmzpIUKyUv8nM=; b=RwJgnwQcG9fdBNvHpeibSF9jxn1fIEcKE+pRwCdl9EupKj8uh9p5OjzDh2Wca9gS5dECzWjVyMrEQ1cM0X4273dB/d7aTvrmpZCeS4pEuzbCjogx10kLZJL1aY4AfMbCWIy0g9aHZ98SeluSoUGTSwE6Nzms/KEXOyHR4tPfL7RLeKBYhv4X1mNukjbM4/DipWxD8CwJh4hElfPc9WBFwQMqQV3AFbPyKtqPwABI3ZUHqa7CMrjXJ0lMQq/qY189xM6neFZlcjVwHn6MGCDOeh6GDOIliFugRBK/Yq8bnMulKJZf/2ccw/up3zRPJaPvy9xdWL+AcmH3lBKVTjNIVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=r4bt6pYOBoYVH2UilSma4dN3eL6ZH3EmzpIUKyUv8nM=; b=mYt4kX3ZPSHq/PWJmXKHO/6ff96+zvKbR1FGuG6jx9MZXmnsvU423f9IHe1OTs7TKCBZo9JQtRDUJU3q7cr7OEwW6xhLiI0cn9kefH3DfjT14o9dIQqjhtpK3HtAta2nWvMKJ9lZGviXFetk3zHookBuaisBhA05+vH7mN8dzBRgnWjHyTju+YcEhgLC83sRdqkMnXPzTAiwawvG3rM4HpAwnhOexQ9/6DOMnKVNxIdx/26auVbESxjgVT7xIJ5TCk8wSPMMGMrPIhNxY9I1wS71MYwbSiiqUGUmok1ZyICbKsZpP0R4DFzXLDbDz9rPWGruBMVPipXt9huqJBTBIw== Received: from BN8PR03CA0022.namprd03.prod.outlook.com (2603:10b6:408:94::35) by BN9PR12MB5322.namprd12.prod.outlook.com (2603:10b6:408:103::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16; Wed, 21 Sep 2022 14:33:07 +0000 Received: from BN8NAM11FT032.eop-nam11.prod.protection.outlook.com (2603:10b6:408:94:cafe::52) by BN8PR03CA0022.outlook.office365.com (2603:10b6:408:94::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.21 via Frontend Transport; Wed, 21 Sep 2022 14:33:07 +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 BN8NAM11FT032.mail.protection.outlook.com (10.13.177.88) 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 14:33:06 +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.26; Wed, 21 Sep 2022 07:32:43 -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 07:32:41 -0700 From: Dariusz Sosnowski To: Ori Kam , Aman Singh , "Yuying Zhang" , Thomas Monjalon , "Ferruh Yigit" , Andrew Rybchenko CC: Subject: [PATCH v2] ethdev: add GTP PSC QFI field Date: Wed, 21 Sep 2022 14:32:02 +0000 Message-ID: <20220921143202.1790802-1-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: BN8NAM11FT032:EE_|BN9PR12MB5322:EE_ X-MS-Office365-Filtering-Correlation-Id: e42e8bc5-68c5-4256-5ad7-08da9bde3324 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: OIwvaKyrVb7EhENh7Ym+l+gRYHxiDNGsEkVPxrj2jfB9JCajvzYt5aOICLjXziWK0hiAcw0PR+rY4ZcC4/YmOPM8UcxpJdy1HpyEIuK59fCDWzGq3XZ4Qm0mJ/d4WLgB8BjECCrFmAzdsBSC07Ifcb9J1pZU79hJv2jyL/wpVSyOsQi71U0SWuXgqBUikHH+b2p7kYLDbUKGfTnnOjPrLOn/GIwgPkP84+ozPdXHd9XVqocmsWUkXlEznEXhrzC6veU26B0D4A9Hs9HK/QHxqF2IX0UbbCzaY8AoyJmC6CVbW3jPJuIjST76kci+TWJMQRZMY9Z8SZrb/U57c1Sn0hA6Bphhh6tGmIyPqZoI4duQd+LT9+oifYbClZ04iGocwf2+rPSKzTdFDT5iWaWTEWwIGCnD6IRpgOkPo0vSZ1RhVG39hslRpTQTrr2uTXOokwyQgyxCYqCwF937b+zdm3i3+mI2jzev3yZHCIydy512upH7T30j3dud9SvZu2peHm+nA+ZZQJAXHD+DbwWugqkwKnKoWVlXpTpLGJmdbFkzuxbNYh9qTmHNIzErPG22tFy46q/jW6Bcm5B99YcmjvQsBBK2EYFIULkqm+6NDe0DqLECvteWEZunwprYEFm6JCmG+EI68CykRj80DkUzmAzCot3kJuX0G/0235KB86NjBjZsO7I0Va5t+Vh2p+cw9PSN+7I2Y2+EASqlvM47Kbe7bvo+gXFjwB8Ji/8bXAZnqTcFA/txhlQ2wIjvrM2s6f2sGGtjRbVh6+kpNl2SIg== 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)(39860400002)(396003)(346002)(376002)(136003)(451199015)(40470700004)(36840700001)(46966006)(47076005)(83380400001)(426003)(186003)(16526019)(82740400003)(336012)(36860700001)(2616005)(1076003)(26005)(41300700001)(5660300002)(55016003)(40480700001)(478600001)(6666004)(6286002)(7696005)(8936002)(82310400005)(4326008)(7636003)(356005)(8676002)(70586007)(70206006)(86362001)(316002)(40460700003)(2906002)(36756003)(110136005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2022 14:33:06.7380 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e42e8bc5-68c5-4256-5ad7-08da9bde3324 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: BN8NAM11FT032.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5322 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 introduces the GTP PSC QFI modify field support and adds the testpmd CLI command support. An example for copying GTP 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 QFI field 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 Acked-by: Ori Kam --- v2: * Squashed ethdev and testpmd commits. app/test-pmd/cmdline_flow.c | 2 +- lib/ethdev/rte_flow.h | 1 + 2 files changed, 2 insertions(+), 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. */ diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index a79f1e7ef0..e64831f8f1 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -3689,6 +3689,7 @@ enum rte_flow_field_id { RTE_FLOW_FIELD_VALUE, /**< Immediate value. */ RTE_FLOW_FIELD_IPV4_ECN, /**< IPv4 ECN. */ RTE_FLOW_FIELD_IPV6_ECN, /**< IPv6 ECN. */ + RTE_FLOW_FIELD_GTP_PSC_QFI, /**< GTP QFI. */ }; /** -- 2.25.1