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 4C916A0C43 for ; Thu, 23 Sep 2021 10:44:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E1E741254; Thu, 23 Sep 2021 10:44:57 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2062.outbound.protection.outlook.com [40.107.93.62]) by mails.dpdk.org (Postfix) with ESMTP id 4B47B4124A; Thu, 23 Sep 2021 10:44:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BksNWa2/UbjI3xwBnQ0ygukNnLrk4On46HPVP+k3Z5mUqdXa03zL6pljstJ9ePOB1lW8kt2zMLRkAeL8oC5pGIT6afnWGVMGkO+WX0Y9XQShzL8cljIwyu2ny4bNweSpI2wKBmw2ehpBNx7j/H3jCWYh71IToH8NtJ6rDPw6AUMjITNzVeg9SGnw2BpaE0lZGRR65N/0XHCOpl5o7kO0sZ9Dri78HaPaepPvFW84fkkRpSPZXCOh9OkYkHJM6hgEWis0Ni7LvHJdVMJrlaPoflA5pNm1jmirGYBYaxgmiz1TFBfIjuXmyycm1OUKZ+sC3pYPAN/tJYXAxIVCXNDedA== 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; bh=j8ae1Xl1eRUlEHHASAKVb3aXOe9jTflYT31IBaJbB+k=; b=nbBVfctgmaqn/alMgWBIUcXf7s+nyyWpM+rI/WsBBOdzCiWAtOZ3SlrKNLYfp9OP9TkYq/2c8Yiuos0r8sL4+kTiFHAW6V0Pa0oZ5HXYsxF7V4mtuTqbUyqo50NSABIwjyJxrRinkpIeJlkIiIDECBcG2SbHWGV8qmdsGnbZdKX9NF9Xp76grlmnm7kbl1SNYtBAapOfBqFSQpxGIiLuAYOszx8iRdLTUszDwxNjZozPNI9uBLcY0xEfwOU1f/oLhliY4skU6immCTkI58cfhvPuAZOgGIkSHtcWUpg8yiPE/P99FBRWkoMXlTiA19rYX92Hi9u+UfJW1gQ6EAWhKg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.35) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none 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=j8ae1Xl1eRUlEHHASAKVb3aXOe9jTflYT31IBaJbB+k=; b=TrlrmuDl6rQ6PLiMzsupWu4Jwh2vKh2WrYsd+lKURa8kPvdhMbM1g7UES3MLwPDhuG63HGouKU+hwcYD0ChoOPqVwk7ZWp7juBB5TU06oMixVRVQWUI243niyRIbOi02fRiwqhQBynorSl2GtYgqLUZ+Grxr4i4pzr2/c1nxvH9wmhe5TFG5jhWSNfj/GaOHedQuYfYKU4wjfWdCoYgnkdSKnUFl/SQCJm1KXBBlXpskJD7Xh9dHZp4Wo+ki0YktKCXsg/+8xhtTi+ts5jxJRev0rCyDw1tO7Ir4+3Gz+12CmeWNIrgNHelfw1iXUmRZm+9a7poVjXyHK0E+fGVTQg== Received: from MWHPR2001CA0004.namprd20.prod.outlook.com (2603:10b6:301:15::14) by BL1PR12MB5206.namprd12.prod.outlook.com (2603:10b6:208:31c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Thu, 23 Sep 2021 08:44:51 +0000 Received: from CO1NAM11FT053.eop-nam11.prod.protection.outlook.com (2603:10b6:301:15:cafe::fa) by MWHPR2001CA0004.outlook.office365.com (2603:10b6:301:15::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Thu, 23 Sep 2021 08:44:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.35) 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.35 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.35; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.35) by CO1NAM11FT053.mail.protection.outlook.com (10.13.175.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4544.13 via Frontend Transport; Thu, 23 Sep 2021 08:44:50 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 23 Sep 2021 08:44:49 +0000 Received: from nvidia.com (172.20.187.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 23 Sep 2021 08:44:47 +0000 From: Eli Britstein To: CC: Ferruh Yigit , , Matan Azrad , Shahaf Shuler , Slava Ovsiienko , Gregory Etelson , "Eli Britstein" , Date: Thu, 23 Sep 2021 11:43:01 +0300 Message-ID: <20210923084301.5139-2-elibr@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20210923084301.5139-1-elibr@nvidia.com> References: <20210923084301.5139-1-elibr@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 55e47f4a-6b0c-4300-fffd-08d97e6e681a X-MS-TrafficTypeDiagnostic: BL1PR12MB5206: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:345; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xY4/zsMWiNxTGA29Zk6pGHbTjrWr0GudTLQf9a7I84ccOwx6/TSYl6uL1KkUqnopW+oRtgbqOvKrjv1oBcqFWUrDywWwUnaZYntYEVazgt84HbVEgBqpF3AUh+iDPfqbwSLVSd7jlsPG/CKOR20fbTohG70lTdWRTSCqF+KpFPQSWCxKW96Ch5B52YendvokTMECCucVj78hk92FUxKaje7PuiyYZQP2wlcZmEHlp83jjJQD+rkkHF7akYo13sYyStrCrWsbOLBcWRj4DdYgNoMtZ3mT5QsBc0n2C51cCyDU4ux/h1bWlsr1Hdw8XSHMRljUynC5fcUxKXXkCWZkFhjy/ZX1UQi3ylJI+NcaASdFd+FymgM3qCftKDF2cuOyBsBWVoS+OWPUemcG83fUvc7GkfsWa6f9Oszpq33z/n7fP/pmgTNNI7uXaPQCOkQNRzQAw74WiRHRFlKYMp/4kJo/9q8syJrdIqQ7OzBuM7db5lvYH5sORwqUVyPQYWsl3itQkBYiK+y6aesC+eoTaQB3GOo6py4FnuFeFiFO1yyU/qJBlQcPiSXAE3xg4kXybmvdCOGbh5hXeJSXLNVZ7F8I5lbDxUzhDleIPm9sxXxcMBkuPrly57YoCrIw9oIBNax4fTUEo/ACy5nhVKTQ2Pi8YwHwcpcB6O2XQEFzFO5g4F8zUphMJzvAHvfj0mJdZapcz6nWidFcxW+xh7pdQg== X-Forefront-Antispam-Report: CIP:216.228.112.35; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid02.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(508600001)(7696005)(82310400003)(83380400001)(36756003)(1076003)(5660300002)(186003)(336012)(356005)(6666004)(4744005)(36860700001)(47076005)(8676002)(6286002)(2906002)(70206006)(36906005)(8936002)(7636003)(70586007)(86362001)(6916009)(26005)(4326008)(2616005)(316002)(54906003)(55016002)(426003)(16526019); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2021 08:44:50.6298 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 55e47f4a-6b0c-4300-fffd-08d97e6e681a 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.35]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT053.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5206 Subject: [dpdk-stable] [PATCH V2 2/2] net/mlx5: add support for more tunnel types 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" Accept RTE_FLOW_ITEM_TYPE_GRE, RTE_FLOW_ITEM_TYPE_NVGRE and RTE_FLOW_ITEM_TYPE_GENEVE as valid tunnel types. Fixes: 4ec6360de37d ("net/mlx5: implement tunnel offload") Cc: stable@dpdk.org Signed-off-by: Eli Britstein --- drivers/net/mlx5/mlx5_flow.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index c914a7120c..6a03fc52d7 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -9123,6 +9123,9 @@ mlx5_flow_tunnel_validate(struct rte_eth_dev *dev, err_msg = "unsupported tunnel type"; goto out; case RTE_FLOW_ITEM_TYPE_VXLAN: + case RTE_FLOW_ITEM_TYPE_GRE: + case RTE_FLOW_ITEM_TYPE_NVGRE: + case RTE_FLOW_ITEM_TYPE_GENEVE: break; } -- 2.28.0.2311.g225365fb51