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 C4919A034F for ; Wed, 10 Nov 2021 07:50:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BE30740142; Wed, 10 Nov 2021 07:50:50 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2058.outbound.protection.outlook.com [40.107.244.58]) by mails.dpdk.org (Postfix) with ESMTP id 97D5840683 for ; Wed, 10 Nov 2021 07:50:48 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TQrKJqF3PiqcUYFhxOlfw3K7uJakgTz298Nzlfp+4etTJ2Fvl/lD8TDGKyobTHNehHC+WwaopZiag14mdydDLl4zICRlD9y1Jgq5lMHlIbXeSIR+LU9MEp+/TpO/Bxkp/GIw1HUr4irwhTjdZyO5Ymq8PkJsNhEKbmAb+MrD8BpFgi3P/AY6HEW/2E1Y7sFkgerDEve+byhkthkNtUk1uLGSA7HZSnWXMnLHWseHCwFSXCvKnPqL6VBhpryIqV6MQ0VfDNmF+njDFsrf8KODbNVh2g8cQDpR3+YVLcmK9uOQMqzy5K6k4EiBUlg2L5MzeLnKZlXgOEmerB3YZVhabg== 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=wu+O7kr5z03QD3dOcXlTlx8XkEsJW9hpu7hmyODDp+A=; b=SkrYZqjjC8aXLk84TM07dqXR5rbKT2Bw8m8tSJ7ieyecLbcY0/zs4SyLOiuJ75IC6GP5FYv5XqDzw89OEljc7crGWs4/T6zFixYgJJ4CltHKTk9sYRBGJejMqwdqq+yB+4uku5C3U0OFeqPbOVVXvyHlM2CUQPHbS/btRILHaGPyKSw09+k3SxGvB5tuf6iUpPgyogbKQOzoTwUgICJVkXUk3U7lwZgg/pqOAF6sA690OT+hQKSX0k5K74bZqCg0t54nYEjbhs4VRYXy4CAzR6LB+qQ9YGWcxs758V0UUfS+jmhVEilizxgzIDx4dx4Yr7SKhAlCZL04NG+Ewn8bYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=wu+O7kr5z03QD3dOcXlTlx8XkEsJW9hpu7hmyODDp+A=; b=azunl8MjvWFw2UvRRYJjabiTMaFzztYbuBHgRaHtGuc1GIRxBZQX9gV24vv4eRNTItySFfD35K4moKiV2E3oDQ6bXm73h6rjFMP6eamqfFvHpt5i45zeNzVt9udM8y8pEWo/4v/NU33Gr9TCZ5NiAW8IBgtt3hLMOquN9nadBGz7pJ4i2/qjawH4vrki5vY5q4LLONCsXgOZB/mOany6BzBLlL18hWTfxWAhUPO0hllEqkaxXWStogsSPMpQ07ZNq0/YQpJE5pbt/uTbHq8jCaahtUmo1TgoaIHmi4palLDL89pNPzo93A13feAMyUzoLoceO7uV9ZgO3QQxA8T3ew== Received: from BN8PR04CA0040.namprd04.prod.outlook.com (2603:10b6:408:d4::14) by BN6PR12MB1282.namprd12.prod.outlook.com (2603:10b6:404:1d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Wed, 10 Nov 2021 06:50:47 +0000 Received: from BN8NAM11FT052.eop-nam11.prod.protection.outlook.com (2603:10b6:408:d4:cafe::1) by BN8PR04CA0040.outlook.office365.com (2603:10b6:408:d4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Wed, 10 Nov 2021 06:50:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT052.mail.protection.outlook.com (10.13.177.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 10 Nov 2021 06:50:46 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:50:32 +0000 From: Xueming Li To: Eli Britstein CC: Luca Boccassi , Gregory Etelson , dpdk stable Date: Wed, 10 Nov 2021 14:30:47 +0800 Message-ID: <20211110063216.2744012-164-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 95d7366b-f3a8-4f99-3f39-08d9a4166c9b X-MS-TrafficTypeDiagnostic: BN6PR12MB1282: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9FoVUDJS+eto7hn1iqaRatduhla0tvoQlNhXaOaRN10DSxM0Vn+Eb2SxhNts8d05a7EROBV97pZKaMHZQphvbIBuv1KH2+J79y/ZGbJdhh1gPOx+WdrwfoA3bC2+/l0ePk8rtdmaiCwbFaqvGC+5K02F/txQMMuwqsMwIZLD2BGx6rsZOvRdgUkQ7ggrYgCGeiHdcvsxwxog0uzrRnDJTR8xSzDrPjsr3RKO8muliE5bx9JrQYhqmss5x+HIQVDSXdB7/sPvyVjr7o4xNeVqk9uypaLLcbcCHbIjOdzUoG1GIbN/WoARX3e0Aq9GRc11i3iI0k6qhaVJdjUv7LRSRuu/Cnq1UgNkPZ0AtA1NbGJf1rTHabCWUEk5VeyFrmx7+IFSduI5EiXCwSJAh9N9aqFDmf2JtuBQqrJkmvZle53WFLQlH19UURbB9hwuZGpbAblMKKUkEMWe6Cs5LHujIknfz1tHsX9lIUSbga2sgcdJa8lrS9S/8B3eyA3QSdDM7+zZh4PYFngLbfnXMntDqtN+vTWOv/7i+obfzapw+eUv+njMEgXXdzCuNVX6B909S9yhXgl/4OLY63/L9Spy7lgrSDA6T1NgYeBBy3Hv7srQTObdageO5AZXCf/tUT+ReKfvl33OB77TN1y0e/8Oqg7LRiKxB9/PvzpCCABpYlujiyJMVqINGbRZZBYTErQcKf9o9hw99l16QzO488DHm6cJZroUnLmc2IpKrRy+tYAoH9JrwhQee+EB0QJceQxEfi3oTvTfT+zrCgDW+pEhhpCWYsThbj3qViFmBoc/caaIm5BXZKuY5+8QxACSMYw0nsbaR9flomYXgqYy4lZTaQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(26005)(36756003)(6286002)(1076003)(6636002)(70586007)(8676002)(36906005)(7636003)(37006003)(5660300002)(6862004)(186003)(966005)(4326008)(54906003)(82310400003)(47076005)(316002)(16526019)(86362001)(508600001)(36860700001)(53546011)(426003)(2906002)(7696005)(356005)(70206006)(8936002)(2616005)(6666004)(55016002)(336012)(4001150100001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:50:46.6466 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 95d7366b-f3a8-4f99-3f39-08d9a4166c9b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT052.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1282 Subject: [dpdk-stable] patch 'app/testpmd: add tunnel types' has been queued to stable release 20.11.4 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/94d1b9ecfce815c0279cb943baefa7ea7e800b01 Thanks. Xueming Li --- >From 94d1b9ecfce815c0279cb943baefa7ea7e800b01 Mon Sep 17 00:00:00 2001 From: Eli Britstein Date: Thu, 23 Sep 2021 11:43:00 +0300 Subject: [PATCH] app/testpmd: add tunnel types Cc: Xueming Li [ upstream commit ad6a8a20cb6be078575c7dab579877ab51c3cb4b ] Current testpmd implementation supports VXLAN only for tunnel offload. Add GRE, NVGRE and GENEVE for tunnel offload flow matches. For example: testpmd> flow tunnel create 0 type vxlan port 0: flow tunnel #1 type vxlan testpmd> flow tunnel create 0 type nvgre port 0: flow tunnel #2 type nvgre testpmd> flow tunnel create 0 type gre port 0: flow tunnel #3 type gre testpmd> flow tunnel create 0 type geneve port 0: flow tunnel #4 type geneve Fixes: 1b9f274623b8 ("app/testpmd: add commands for tunnel offload") Signed-off-by: Eli Britstein Reviewed-by: Gregory Etelson --- app/test-pmd/config.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 4847c36481..11369ca2c2 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1473,6 +1473,15 @@ port_flow_tunnel_type(struct rte_flow_tunnel *tunnel) case RTE_FLOW_ITEM_TYPE_VXLAN: type = "vxlan"; break; + case RTE_FLOW_ITEM_TYPE_GRE: + type = "gre"; + break; + case RTE_FLOW_ITEM_TYPE_NVGRE: + type = "nvgre"; + break; + case RTE_FLOW_ITEM_TYPE_GENEVE: + type = "geneve"; + break; } return type; @@ -1533,6 +1542,12 @@ void port_flow_tunnel_create(portid_t port_id, const struct tunnel_ops *ops) if (!strcmp(ops->type, "vxlan")) type = RTE_FLOW_ITEM_TYPE_VXLAN; + else if (!strcmp(ops->type, "gre")) + type = RTE_FLOW_ITEM_TYPE_GRE; + else if (!strcmp(ops->type, "nvgre")) + type = RTE_FLOW_ITEM_TYPE_NVGRE; + else if (!strcmp(ops->type, "geneve")) + type = RTE_FLOW_ITEM_TYPE_GENEVE; else { printf("cannot offload \"%s\" tunnel type\n", ops->type); return; -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:09.173654598 +0800 +++ 0163-app-testpmd-add-tunnel-types.patch 2021-11-10 14:17:01.970745273 +0800 @@ -1 +1 @@ -From ad6a8a20cb6be078575c7dab579877ab51c3cb4b Mon Sep 17 00:00:00 2001 +From 94d1b9ecfce815c0279cb943baefa7ea7e800b01 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit ad6a8a20cb6be078575c7dab579877ab51c3cb4b ] @@ -20 +22,0 @@ -Cc: stable@dpdk.org @@ -29 +31 @@ -index bdcd826490..23aa334cda 100644 +index 4847c36481..11369ca2c2 100644 @@ -32 +34 @@ -@@ -1249,6 +1249,15 @@ port_flow_tunnel_type(struct rte_flow_tunnel *tunnel) +@@ -1473,6 +1473,15 @@ port_flow_tunnel_type(struct rte_flow_tunnel *tunnel) @@ -48 +50 @@ -@@ -1309,6 +1318,12 @@ void port_flow_tunnel_create(portid_t port_id, const struct tunnel_ops *ops) +@@ -1533,6 +1542,12 @@ void port_flow_tunnel_create(portid_t port_id, const struct tunnel_ops *ops) @@ -59,2 +61,2 @@ - fprintf(stderr, "cannot offload \"%s\" tunnel type\n", - ops->type); + printf("cannot offload \"%s\" tunnel type\n", ops->type); + return;