From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <yliu@fridaylinux.org>
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com
 [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 96CB54D3A
 for <stable@dpdk.org>; Thu,  1 Feb 2018 10:48:51 +0100 (CET)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id 502E820B13;
 Thu,  1 Feb 2018 04:48:51 -0500 (EST)
Received: from frontend2 ([10.202.2.161])
 by compute1.internal (MEProxy); Thu, 01 Feb 2018 04:48:51 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org;
 h=cc:date:from:in-reply-to:message-id:references:subject:to
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=B8EPA9UJcuZIb12/M
 TxkfHou6IjkTSoLF8FtTqNRpX8=; b=NDxBKFmI++fNrLhJ7IrFl5Gvavw/gQA/r
 q6Wai4rfE6wOnyNnapd0LX+Jw8/NIMKilsQ+Neh60RBA6L6v5iwXPS3d6+57V5HR
 tsiVJH+1ssno6O5o3jS4CBQkvKh1QmIbobPMycb78RsaFGH/I46ZRajkNU5Xs55p
 PFzO0qvZ3HOHvUJoyV0Wh1IsxKkI92j3uHbIfji+MwUH8jSVGvQzwDpS525hhzxU
 j+9QxBkg9op9jgSoOsiHtjUtxduSA/gVzMMUJ3jUi8X9cMUXqIV8VBJxi3rq/GP5
 IoCtu+jzcjwHFaA66Z/46bkTN0Oicpt/AzDuwUrDQ+R6v9+4JN8TA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:date:from:in-reply-to:message-id
 :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm1; bh=B8EPA9UJcuZIb12/MTxkfHou6IjkTSoLF8FtTqNRpX8=; b=GZifK5r7
 YQJw0qkiEqw0+c2ZwdwjDT7LBAMUCYwmuRRFjcJPp7N9jR6Eq36huKKP06S247dw
 C5pM0xFH6ajzuJKXR/xxDLpUmOzGD/TkHyl9ork7g6yFAJImnW68BOz3Ns+76/TJ
 hXHJhL++aPI+dHV69lCknv6rgkm0emBMYHudvVm0r14Ad7nNGv0MCoH5m/4ZtYW5
 hbPJFwuPwWpIDNmQEL279osQFaFQiSWHHT4+26gAil5f5BON6V0fF623LiYl/10l
 7U03XZYE1hOAIlBrdTKZRdvCsKvsN+DKkJLvkUHet/64vAEU47nf80ZscDR0qYfx
 bfO1OLA7AWRMuw==
X-ME-Sender: <xms:g-JyWojkjTOPiZS181O8k_dfT3QpLHD0nXFbT8-44ebPdiR-_ubdvg>
Received: from yliu-mob.mtl.com (unknown [115.150.27.200])
 by mail.messagingengine.com (Postfix) with ESMTPA id 6ADAD240B6;
 Thu,  1 Feb 2018 04:48:49 -0500 (EST)
From: Yuanhan Liu <yliu@fridaylinux.org>
To: =?UTF-8?q?N=C3=A9lio=20Laranjeiro?= <nelio.laranjeiro@6wind.com>
Cc: Yongseok Koh <yskoh@mellanox.com>,
	dpdk stable <stable@dpdk.org>
Date: Thu,  1 Feb 2018 17:47:32 +0800
Message-Id: <1517478479-12417-18-git-send-email-yliu@fridaylinux.org>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org>
References: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org>
Subject: [dpdk-stable] patch 'net/mlx5: fix flow item validation' has been
	queued to LTS release 17.11.1
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://dpdk.org/ml/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://dpdk.org/ml/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Feb 2018 09:48:51 -0000

Hi,

FYI, your patch has been queued to LTS release 17.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/03/18. So please
shout if anyone has objections.

Thanks.

	--yliu

---
>>From e93a85e46ec0bf92e5f3abcaff7c9e192d7f2d98 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?N=C3=A9lio=20Laranjeiro?= <nelio.laranjeiro@6wind.com>
Date: Tue, 23 Jan 2018 09:05:09 +0100
Subject: [PATCH] net/mlx5: fix flow item validation

[ upstream commit 537e168450ce5e191c8d3ee89fa7fa9901e8e27f ]

Two masks were compared instead of verifying the spec was included in the
supported mask.

Fixes: 2097d0d1e2cc ("net/mlx5: support basic flow items and actions")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
---
 drivers/net/mlx5/mlx5_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index 00f4bec..d49aed8 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -539,7 +539,7 @@ mlx5_flow_item_validate(const struct rte_flow_item *item,
 	}
 	if (item->mask) {
 		unsigned int i;
-		const uint8_t *spec = item->mask;
+		const uint8_t *spec = item->spec;
 
 		for (i = 0; i < size; ++i)
 			if ((spec[i] | mask[i]) != mask[i])
-- 
2.7.4