From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <yliu@fridaylinux.org>
Received: from mail-pg0-f47.google.com (mail-pg0-f47.google.com [74.125.83.47])
 by dpdk.org (Postfix) with ESMTP id 391589951
 for <stable@dpdk.org>; Mon, 21 Aug 2017 11:37:04 +0200 (CEST)
Received: by mail-pg0-f47.google.com with SMTP id i12so96982071pgr.3
 for <stable@dpdk.org>; Mon, 21 Aug 2017 02:37:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=fridaylinux-org.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=uHlsNaMiaNf52OD9nhTZ/Iq7/Xf4xU4dJh7C6j+EKtw=;
 b=zeDTeYI3mwIwxDrg9ePjH3msBRskBQUoZD0glbd8Wc4U/u+W1QT83TDkNvCh2S7k6f
 yTKPRRDiBRUJDmDamLGbe6X/UunGLbekZsE4T37djkV+X2yCVdjJWprRQWc1tDMv3afY
 z4uQwBtiH41C2X32iUrTgj1uYoopYUMGn+fdEw2pUBgZflISMoo3+nRHGPBgxWcIBeJC
 7u4PbcWB6t9UZS38nEb0EVScq9pxZJ7vNN2Nj0FuWgPvFX7G/ejOls17XCgMvp4cQV9k
 SK5Qr5xMFEu+TRIoFU9IvLQ76BeJDJS4wtxTDcaM1VMtOVFD1BLt1Yjx8EE+Tgl9PoJr
 RR7g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=uHlsNaMiaNf52OD9nhTZ/Iq7/Xf4xU4dJh7C6j+EKtw=;
 b=BPxiPpUvV5Kc4Gdg1EcvFkXKHM/FyDFfuOmVTfgv+iaiceDHNYcDfJQFUCDywaK1Vl
 ta553DGekJRuBiaSW5K45DQPRFPPS9Wx5Jfdu88Mm4FS3Yaq0GylKLbCKUZncCSWdPwj
 RztO8wvudBzaDAbYZBuVDxeSSc4wWa82IDlsMxYixu0RXVbPMnpd9IRMQxx4E/l99v2X
 +KLuyXXAwfZpvffF32EQGbUdolF+Q0j46zr3l+WIgAds6AEjh+EUbhlYZiWqw8M1HOPx
 bQ472Gpyj5852E0cYS7jn99WC0J1UC1JQHKo2Y3MynwQ/oJ45TVc8G29UfmMjlts3Tas
 apaQ==
X-Gm-Message-State: AHYfb5is12UlN1BCuKLe4osGAM84CYaoxMcgZ8yH7MaicfCUOQaipbB2
 hjnY7dWKsrExFE+X
X-Received: by 10.84.238.2 with SMTP id u2mr18407825plk.169.1503308223554;
 Mon, 21 Aug 2017 02:37:03 -0700 (PDT)
Received: from localhost.localdomain ([45.63.61.64])
 by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.36.59
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Mon, 21 Aug 2017 02:37:02 -0700 (PDT)
From: Yuanhan Liu <yliu@fridaylinux.org>
To: Qi Zhang <qi.z.zhang@intel.com>
Cc: dpdk stable <stable@dpdk.org>,
	Yuanhan Liu <yliu@fridaylinux.org>
Date: Mon, 21 Aug 2017 17:31:00 +0800
Message-Id: <1503307878-16728-46-git-send-email-yliu@fridaylinux.org>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org>
References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org>
Subject: [dpdk-stable] patch 'net/ixgbe: fix mirror rule index overflow' has
	been queued to stable release 17.05.2
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: <http://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: <http://dpdk.org/ml/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Aug 2017 09:37:04 -0000

Hi,

FYI, your patch has been queued to stable release 17.05.2

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

Thanks.

	--yliu

---
>>From 74f9c28c49a74fe98da5569fa38131150a07ed56 Mon Sep 17 00:00:00 2001
From: Qi Zhang <qi.z.zhang@intel.com>
Date: Fri, 21 Jul 2017 16:56:37 +0800
Subject: [PATCH] net/ixgbe: fix mirror rule index overflow

[ upstream commit 9b2df1083aab703e73f6d76e8f41afacb463afe9 ]

Mirror rule id should not exceed the boundary defined by
IXGBE_MAX_MIRROR_RULES.

Fixes: fe3a45fd4104 ("ixgbe: add VMDq support")

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 0a142ee..626c5ee 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -5323,6 +5323,9 @@ ixgbe_mirror_rule_reset(struct rte_eth_dev *dev, uint8_t rule_id)
 	if (ixgbe_vt_check(hw) < 0)
 		return -ENOTSUP;
 
+	if (rule_id >= IXGBE_MAX_MIRROR_RULES)
+		return -EINVAL;
+
 	memset(&mr_info->mr_conf[rule_id], 0,
 	       sizeof(struct rte_eth_mirror_conf));
 
-- 
2.7.4