From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f44.google.com (mail-pg0-f44.google.com [74.125.83.44]) by dpdk.org (Postfix) with ESMTP id 0DAD92B9D for ; Wed, 9 Aug 2017 05:47:01 +0200 (CEST) Received: by mail-pg0-f44.google.com with SMTP id l64so22713264pge.5 for ; Tue, 08 Aug 2017 20:47:00 -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=gUAE1+UzUq/VzUtBCLVZ9g8FfgVIGMnlPNcmEfdt7cU=; b=RI9SXt0jYn6ae9GZK4voN8jiHW8M9w0/Xqg1nTSRV2JKdfpmGO8KeC/V/wfoLdY/Q/ +XRWhhF4vgjgU8hDeQu54aiNs95WDyIhN/c0+MHbJfiCzho+RmEO97BhT7sknFk+L0Jj mjC/R6nCCJLt/qk/AEdD0EJXnIEMx2T7z6bhNqaKCp99s4tF7qvjBe/9ZKX6SGK/w9Ua 2/GSCjl/NYy2jilPJbPtuxghC0/CWlr2nLT7NBllACi8B3ASWUzb00C0PRKlIyLNdfEw Ipci/Phj77RTUwk+VtAVLQQV7UNjTsLFEoDku2uraff8uzZalkIXDmjPUgBctzlbwhbP 3Ahw== 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=gUAE1+UzUq/VzUtBCLVZ9g8FfgVIGMnlPNcmEfdt7cU=; b=jpCRyruuRa1V4QlUfqioeKpKbisoyatUdmgIRzzBTjZqv4QX+TKgj8oPTp4BdWw4oA i2aRTwwlqU5n7m9jeY9fvdY9Y7ZDW6M3M/C/Xc/EjM/rmY/Rby7CqGInAkH9C5Cn4jc+ jM6Ap9UbIfPwW9Oxps5UrTYvxrRQ/ab6N5EgWYGYg90OYcZc1WgFq+d5LSY4+cjVQTzf LLat2HTRDdyebWYlWUJwZyR9FaztJIU/uGTVgy5IpZnJSmP3dqN3X0E87YG4jF8TWeRv 64mgei/iYj0tsP7aHSC0DWwsCDQU/B3AQDoOEdLm2N534JSfNC57B5m/6ivHCRMRo8a9 RwhA== X-Gm-Message-State: AHYfb5jOKUDITyVCxJewzBvK5qS1nCAoLxj1k4kb+jcujgjTTCgHMEM5 bO5ffMErJQPqBnpG X-Received: by 10.84.129.193 with SMTP id b59mr7228642plb.299.1502250420372; Tue, 08 Aug 2017 20:47:00 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id q3sm5093921pfl.89.2017.08.08.20.46.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 20:46:59 -0700 (PDT) From: Yuanhan Liu To: Qi Zhang Cc: dpdk stable , Yuanhan Liu Date: Wed, 9 Aug 2017 11:43:49 +0800 Message-Id: <1502250240-6599-7-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502250240-6599-1-git-send-email-yliu@fridaylinux.org> References: <1502250240-6599-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/ixgbe: fix mirror rule index overflow' has been queued to LTS release 16.11.3 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: Wed, 09 Aug 2017 03:47:01 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.3 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/11/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 94e19267e091b877cd8a3b77bf342db7d26dad12 Mon Sep 17 00:00:00 2001 From: Qi Zhang 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 --- 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 958537f..f994fed 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -5044,6 +5044,9 @@ ixgbe_mirror_rule_reset(struct rte_eth_dev *dev, uint8_t rule_id) if (ixgbe_vmdq_mode_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