Message ID | 1529566255-14001-1-git-send-email-rasland@mellanox.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 354741BB3E; Thu, 21 Jun 2018 09:31:15 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60075.outbound.protection.outlook.com [40.107.6.75]) by dpdk.org (Postfix) with ESMTP id E8CFD1BA90; Thu, 21 Jun 2018 09:31:13 +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=1biJk3YrBjBOSsR4tdIa3H6sTgwx2i8GlYdCbr2WKfU=; b=x7P5onYDbHCBZ6xkxQbXzJYhMPBH6B7b1g+bm3Oji7m5Oc77YH3GtNH+HLmHbZExo5RpVX39ItGhFK4pKRQ5RYPzb1pwG+X6W1AWPonFuN2tPpN9hyWlq2vHRUxBcDPzecrFOvBVFA4+2oSzOql/ut5abSwNg3Gezn79I8zPpEE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; Received: from mellanox.com (37.142.13.130) by HE1PR05MB1258.eurprd05.prod.outlook.com (2a01:111:e400:588a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.17; Thu, 21 Jun 2018 07:31:11 +0000 From: Raslan Darawsheh <rasland@mellanox.com> To: shahafs@mellanox.com Cc: dev@dpdk.org, matan@mellanox.com, nelio.laranjeiro@6wind.com, rasland@mellanox.com, stable@dpdk.org Date: Thu, 21 Jun 2018 10:30:55 +0300 Message-Id: <1529566255-14001-1-git-send-email-rasland@mellanox.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529413738-28378-1-git-send-email-rasland@mellanox.com> References: <1529413738-28378-1-git-send-email-rasland@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR08CA0109.eurprd08.prod.outlook.com (2603:10a6:800:d4::11) To HE1PR05MB1258.eurprd05.prod.outlook.com (2a01:111:e400:588a::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 944ce4a8-7822-4fff-7724-08d5d748f6e7 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:HE1PR05MB1258; X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB1258; 3:TCC6CvpESbn+ggSgnQ474P7C6ozTbgSj6bmkRoN6W2hdLaiqNzvwVahx2lTzUkpTOCOBGHxLcZ6+gT5RnEDTj24vc4NTqb7Q7HNYo8c5sc5hPqP8GBOa5ZnWEJ3IWYIAUrbCJ9wQA5rXPmN9FeyiPbwrk7hQPULY9FLXJAEY5GWBY2UgcSjiDO7yuvtRGWKHrunE19Do0v0KxvnDdAGzHXVY0eW8OFLy0hLAB/4EDvwPzrOAhAH46PDZ4dbMpHAw; 25:NzcfiukqN6qrvrbeJg9pbIWnXbgIHCelllxaOuY8rjZYnAgM/mgWHP6XIYXIjI1pHNUx5yeTTlXVI7bp2M1KFwEAXIgbULAkpcRC6vhuRvfNQhzbOYUuFq+445oAIfblsNIcqvftZOBPnITb5w6uNJRe1z6gHW5bpWt8uDLyTc4xoIf1NUCsWMvu1z9iplbHh1oqOU0fjisw9rMusOLnkNIOK+a5a+wJNr8kb9GvUlAyP6cSjc2Al2FfObXzdEcBUlIaPAP/CTo1cJmmxCrTzNSr5lmQ1hMTyHkX3x0exQxDQXBnkysm0CURUYpeYGSmRqXvvgPTZPFCsJsBYCsWXg==; 31:T51BdR/443BURCepkzXYlxha66STHCxFMgSBeeG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RpyW+FBmq4/ZkdylVt+E0P03g== X-Microsoft-Antispam-PRVS: <HE1PR05MB1258689E0F8CB437BCE02B80C2760@HE1PR05MB1258.eurprd05.prod.outlook.com> 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)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:HE1PR05MB1258; BCL:0; PCL:0; RULEID:; SRVR:HE1PR05MB1258; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(39860400002)(346002)(376002)(396003)(199004)(189003)(16526019)(2361001)(316002)(33026002)(16586007)(37006003)(66066001)(86362001)(8936002)(81166006)(305945005)(7736002)(97736004)(8676002)(386003)(3846002)(47776003)(50226002)(2351001)(7696005)(81156014)(51416003)(76176011)(6116002)(52116002)(26005)(25786009)(476003)(4326008)(2906002)(486006)(55016002)(956004)(36756003)(105586002)(11346002)(106356001)(53936002)(446003)(5660300001)(21086003)(478600001)(6636002)(50466002)(34206002)(48376002)(2616005)(6666003)(69596002)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR05MB1258; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR05MB1258; 23:T/Rh4/w8rwUtvZAq8wjHo8OWITdzDM1r6qCppKCX/?= ahoSCR/2Ay7gyuqlBsYOC6mvKHruB/GlJiuIgOYoKkSLIg7syDHIJvCnxsJ7cMpS91XXg4eG2aapu/psYujPPIdRsY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j4bxspSBoQE=; 24:ClSn6TWj2uZEfxSY7UKcAWzMWWgaGGvArMaHt2gjDxybe/hGIN+96fksprBcJCx0bCi2sfokt9959mgGzthdniyx3WbfKqsYn7PRh6MYOHs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB1258; 7:++PHO4KdsCE5NAvdN2N3YflubeUu5uOJPWRAGPI4IZc8dzJyDk+An621Lp60kiC8sIHkDD6Y/GR+B8ADNdePqyqWQ7w1XdeA5cwemRahlsF3M4w7QSUHumj9n3tdOp+ECtMoSVdc1WN+mjql6gnx4nxM6ZLw3xVYz/+Yan2D0h3pRT6bhkokcDg8LA+k4P7BBo1DHXpnXIGWWYkNx59qhmoCc7uLA3k2yhJdfspSz4oJWAqsFV9irKRUzT5V80J0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 07:31:11.1125 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 944ce4a8-7822-4fff-7724-08d5d748f6e7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB1258 Subject: [dpdk-dev] [PATCH v2] net/mlx5: fix RSS level validation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[v2] net/mlx5: fix RSS level validation
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
ci/Intel-compilation | success | Compilation OK |
Commit Message
Raslan Darawsheh
June 21, 2018, 7:30 a.m. UTC
When setting the level in rss action it's checking for the value stored in the parser which is set to 0 by default. This change the check to be for the requested action instead. Fixes: d4a40518 ("net/mlx5: support tunnel RSS level") Cc: stable@dpdk.org Signed-off-by: Raslan Darawsheh <rasland@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com> --- changes in v2: commit massage reword. --- --- drivers/net/mlx5/mlx5_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 994be05..40df633 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -738,7 +738,7 @@ mlx5_flow_convert_actions(struct rte_eth_dev *dev, return -rte_errno; } #ifndef HAVE_IBV_DEVICE_TUNNEL_SUPPORT - if (parser->rss_conf.level > 1) { + if (rss->level > 1) { rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_ACTION, actions, @@ -747,7 +747,7 @@ mlx5_flow_convert_actions(struct rte_eth_dev *dev, return -rte_errno; } #endif - if (parser->rss_conf.level > 2) { + if (rss->level > 2) { rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_ACTION, actions,