* [PATCH] net/ixgbe: fix mirror rule index overflow
@ 2017-07-21 8:56 Qi Zhang
2017-07-21 9:39 ` [dpdk-stable] " Ferruh Yigit
2017-07-21 9:40 ` Ferruh Yigit
0 siblings, 2 replies; 3+ messages in thread
From: Qi Zhang @ 2017-07-21 8:56 UTC (permalink / raw)
To: wenzhuo.lu; +Cc: dev, Qi Zhang, stable
Mirror rule id should not exceed the boundary defined by
IXGBE_MAX_MIRROR_RULES.
Fixes: fe3a45fd4104 ("ixgbe: add VMDq support")
Cc: stable@dpdk.org
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 194058f..e829266 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -5461,6 +5461,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.9.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [dpdk-stable] [PATCH] net/ixgbe: fix mirror rule index overflow
2017-07-21 8:56 [PATCH] net/ixgbe: fix mirror rule index overflow Qi Zhang
@ 2017-07-21 9:39 ` Ferruh Yigit
2017-07-21 9:40 ` Ferruh Yigit
1 sibling, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2017-07-21 9:39 UTC (permalink / raw)
To: Qi Zhang, wenzhuo.lu; +Cc: dev, stable
On 7/21/2017 9:56 AM, Qi Zhang wrote:
> Mirror rule id should not exceed the boundary defined by
> IXGBE_MAX_MIRROR_RULES.
>
> Fixes: fe3a45fd4104 ("ixgbe: add VMDq support")
> Cc: stable@dpdk.org
>
> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-stable] [PATCH] net/ixgbe: fix mirror rule index overflow
2017-07-21 8:56 [PATCH] net/ixgbe: fix mirror rule index overflow Qi Zhang
2017-07-21 9:39 ` [dpdk-stable] " Ferruh Yigit
@ 2017-07-21 9:40 ` Ferruh Yigit
1 sibling, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2017-07-21 9:40 UTC (permalink / raw)
To: Qi Zhang, wenzhuo.lu; +Cc: dev, stable
On 7/21/2017 9:56 AM, Qi Zhang wrote:
> Mirror rule id should not exceed the boundary defined by
> IXGBE_MAX_MIRROR_RULES.
>
> Fixes: fe3a45fd4104 ("ixgbe: add VMDq support")
> Cc: stable@dpdk.org
>
> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-07-21 9:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-21 8:56 [PATCH] net/ixgbe: fix mirror rule index overflow Qi Zhang
2017-07-21 9:39 ` [dpdk-stable] " Ferruh Yigit
2017-07-21 9:40 ` Ferruh Yigit
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.