From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0065.outbound.protection.outlook.com [104.47.0.65]) by dpdk.org (Postfix) with ESMTP id 012581B4FC; Thu, 2 Aug 2018 22:54:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nb5Jn6lg68tnlxGY9P/P3E/XBauKy0MeTTIc7jPvinM=; b=bRFoeDD478zYi2zcmxRPLeLE8mWTyqlwSd8WGaQxQI1dpv3KjmisSBXbaUvuoW6ralQalo9lOk7fcCokAmjESocPBlLmj+TmvbtJ9fbdOpQPhRXJbmIXfHI6EJcF4BmrSWjeD2mjMYyqcPbepRrF3Eeu4AFQTin8ZoBGy4wIeMQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by AM5PR0501MB2034.eurprd05.prod.outlook.com (2603:10a6:203:1a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Thu, 2 Aug 2018 20:54:16 +0000 From: Yongseok Koh To: shahafs@mellanox.com Cc: dev@dpdk.org, Yongseok Koh , stable@dpdk.org Date: Thu, 2 Aug 2018 13:54:00 -0700 Message-Id: <20180802205400.10316-1-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: MWHPR19CA0096.namprd19.prod.outlook.com (2603:10b6:320:1f::34) To AM5PR0501MB2034.eurprd05.prod.outlook.com (2603:10a6:203:1a::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9154606e-b53d-4d48-3cb0-08d5f8ba1d0e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM5PR0501MB2034; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2034; 3:CwyxShm8BVUTcoy3j5gXBHYcHH/6ZGNcRpWWCj5ZEU1hP4eUHuYmsguMRRD10focFB287xS7k06tsQDt0dtqTELvJot2sm87S2mmY9zrQHQ5a3YdqkEXN0JTvHArEUWoaq5IfPBVuq7k72z6ofcuaVkSc8NeTlcmDkuGy7HsRwwvlfr1DWMsF5ioHYhWcou5aIWm37IG4djMfD0ftEzxLZ6POEbsiCxHJT+i4p2UsnNTAlO/tbH3E4YE/hpdwpBr; 25:i+U6ZRtzbTBj2t2WWTUrGUMA++1BHoTTOqYrJJ34vQXtr7v39h2ndg8A8fAHWsEO5uAaDVU0VTRDb/tEjz/qrmsyakQBnIOkjIkmRY7/MsnxqtSVbz0uj4Mw5yHiEV99rqumkQq8KVGRDQvY1qej3oHMyVWO0FjuVY8WUlFjmd/e/iI1RB5SoF6zBOYI9wg4IQJFYtJjyo34B+RHqZW0NrdcET+ZJbL9wjUaaHh2z94cXXHxTsBxTDqQHSjGUb/JtgID4bZfgrsVM9hK1ToB6oHZ14LzJQaBeq4C+RFh3IuQnyaf62AHuuuXPMbTrhzQ0+il0FpfV7OTZfA6dcA7kw==; 31:THccv2OskUij4tA8bVUtnYV+Vn1Dpmgb3JxoYHsy9i/1FG3gmkck5xEnt4zfINPemTYQW+iCkgJ2NLMjJtizUtPKcVhX3GNScmpHsyPr8TlgNyxYMrQagmf1RjuL6RFoUdYG8xmZ4HnpptKLGcH2rrxveW+NnYysLDTWCDIpjrBHxVJQBTUJuYbr0w/xq/GROkUgXw5v+qPXRm/kLK62QlqwZBppB2ZbOq93uE8UA70= X-MS-TrafficTypeDiagnostic: AM5PR0501MB2034: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2034; 20:tTmFQ83nQPbrVV1n+iDKo9SB1hneUPvqSd4AV+/C0THLIAmDK4hBBmBUkKgSc6ctAgHWpArVF2pfMmQl846caHMqev19Utz+uvn55dfLDBMmEuitZOPFudKoeo8IWhxnskWLg3MRWW/eTjkA21EEv8AeuETUOQcvgcBjzGAxkXeCTSfi1fMSTqE2g7OjNGD/QUEFFQtkgQzz/TzM78RT4VicoR9KXGZ5HnZGsAx1qFw2RF5GooA/mHJTsCjePLcBzNgaKakOeOa+qYJXByaRHzt9rv50ZCQe8j3i+VTRJACsGv3rtYLuFmnSm4bKF58ZOq/bLlGJzwXrGr1BsBLqrnEMR7iF7j7CRlO8jn1DvkPCk6fZ1hkUauMUfDXQe47h44bFYgCytK387O9kPfK1esf/rRwoyCasVySG9xoP4lBlxvDjl7wGeG1r5sLcyMcGnfFyQMVEUcpi9GVY+uq7k7kTbglUnk9bHAUcjR+/8A+iZJUrIcwS2fweOeWXGvuN; 4:Jvdydat3t1UVVq3ZF7Q7YXZCHJxu5PGa/iqxJKNIF8IYe+I9Z9BOVyyc7Duj/VM8rmYP7GaPC4Ou4Dtb2MexPHdAxYsZEqUUhvzjwWGUzXEX8L8ht9Dd7Ws9QtxJyKNVN9KfkYuZoaT031PcOnQv98QWL32FNh9XzzYYak+sAaRxWYyBlvC2AzYzWIt3UQkeCjdFK8wAT+EvWY663pu90rFoUG0BVVXycAVYBlfSuhcOCfGH1tVw+se04JJ7k8MVCjF86+jekdFPj+LRslT/mw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:AM5PR0501MB2034; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0501MB2034; X-Forefront-PRVS: 07521929C1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(366004)(376002)(346002)(396003)(39860400002)(189003)(199004)(316002)(6636002)(5660300001)(6666003)(53936002)(50226002)(34206002)(4326008)(450100002)(2906002)(8936002)(66066001)(1076002)(47776003)(2361001)(21086003)(36756003)(8676002)(55016002)(25786009)(305945005)(7736002)(81156014)(81166006)(6116002)(3846002)(386003)(7696005)(69596002)(105586002)(106356001)(51416003)(52116002)(478600001)(86362001)(97736004)(48376002)(2351001)(16526019)(486006)(1857600001)(16586007)(37006003)(476003)(956004)(2616005)(26005)(50466002)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0501MB2034; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0501MB2034; 23:cnVu1fCObAd4SHZK15rtMdvteZQ2z6X9GKsfCSq?= =?us-ascii?Q?y4NsBLoBgnNLEekE+NuSF1QCvrFkKMTxUHJ/iuYgiJyI0B1E/zYGM/3LhK3C?= =?us-ascii?Q?G3yM8d0n+6XGAUUp+Zs9MjWweF1uM0m8YnLA4IVFCqEA/2sytwEgAnTMcopv?= =?us-ascii?Q?QT1Ued0syKHitg9njiPhX9CzwShiJFgwAmj1GJwm9lFoe6xA6Wa8VRjE/C5P?= =?us-ascii?Q?ZpwZdBDgtxZWtxMl4HTIR00tfLVV330Auq213bef8dPkd3aZcsQfS9KJwW8z?= =?us-ascii?Q?eHQitJoASLPGtJA4lUGysnba5mzL17xm+VwdeOPkVCM2Yk9W0B+wOBW2SAyO?= =?us-ascii?Q?Pbnse28GvpueoXqOD1EHqG0ajyryxsA69VDaUN0ETetu3T22mZl9S9XUjvNJ?= =?us-ascii?Q?Fd6XfT9Wvy8q9v4SDxEQRs1LQ0jjlVq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PJSJopZhHzdTUcWrMOX+6I7s/we9UpPtixF2e+xM3mcgZ7jtAIwfnkGJ8AJeFHczA87f6VJ33mECB3Xo+pdq6fBXlQwqpebv0dbBJlfwjcr54Yq2h/e4q5v9HnsOPMWGthluBaWsnXi3H13inKHEfm8e/5U9XiESbY0MjXXNqCpjbmK8vtoMg9kLQGDB+UatJ7a0W3FDi/ZwEReDhb0YgbPiSHMkOBgVY7tKuPkZHa SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2018 20:54:16.7572 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9154606e-b53d-4d48-3cb0-08d5f8ba1d0e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB2034 Subject: [dpdk-stable] [PATCH] net/mlx5: prohibit wildcard match for GRE protocol X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2018 20:54:20 -0000 Currently, driver sets full mask (0xffff) for GRE protocol to device. Until it is changed, PMD can't support wildcard match. Fixes: f4b901a46aec ("net/mlx5: add flow GRE item") Cc: stable@dpdk.org Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index b7500ec9d6..83ac6cbb85 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -1690,8 +1690,12 @@ mlx5_flow_item_gre(const struct rte_flow_item *item, RTE_FLOW_ERROR_TYPE_ITEM, item, "L3 Layer is missing"); - if (!mask) - mask = &rte_flow_item_gre_mask; + if (!mask || mask->protocol != 0xffff) + return rte_flow_error_set(error, ENOTSUP, + RTE_FLOW_ERROR_TYPE_ITEM, + item, + "wildcard match is not supported" + " for protocol field of GRE"); ret = mlx5_flow_item_acceptable (item, (const uint8_t *)mask, (const uint8_t *)&rte_flow_item_gre_mask, -- 2.11.0