[dpdk-dev] [PATCH v2] ethdev: check number of queues less than RTE_ETHDEV_QUEUE_STAT_CNTRS

2016-12-01 Thread Alejandro Lucero
On Mon, Nov 28, 2016 at 11:13 AM, Thomas Monjalon wrote: > 2016-11-24 17:59, Olivier Matz: > > Hi, > > > > On Mon, 2016-11-21 at 09:59 +, Alejandro Lucero wrote: > > > From: Bert van Leeuwen > > > > > > Arrays inside rte_eth_stats have size=RTE_ETHDEV_QUEUE_STAT_CNTRS. > > > Some devices

[dpdk-dev] [PATCH v2] ethdev: check number of queues less than RTE_ETHDEV_QUEUE_STAT_CNTRS

2016-11-28 Thread Thomas Monjalon
2016-11-24 17:59, Olivier Matz: > Hi, > > On Mon, 2016-11-21 at 09:59 +, Alejandro Lucero wrote: > > From: Bert van Leeuwen > > > > Arrays inside rte_eth_stats have size=RTE_ETHDEV_QUEUE_STAT_CNTRS. > > Some devices report more queues than that and this code blindly uses > > the reported

[dpdk-dev] [PATCH v2] ethdev: check number of queues less than RTE_ETHDEV_QUEUE_STAT_CNTRS

2016-11-24 Thread Olivier Matz
Hi, On Mon, 2016-11-21 at 09:59 +, Alejandro Lucero wrote: > From: Bert van Leeuwen > > Arrays inside rte_eth_stats have size=RTE_ETHDEV_QUEUE_STAT_CNTRS. > Some devices report more queues than that and this code blindly uses > the reported number of queues by the device to fill those

[dpdk-dev] [PATCH v2] ethdev: check number of queues less than RTE_ETHDEV_QUEUE_STAT_CNTRS

2016-11-21 Thread Alejandro Lucero
From: Bert van Leeuwen Arrays inside rte_eth_stats have size=RTE_ETHDEV_QUEUE_STAT_CNTRS. Some devices report more queues than that and this code blindly uses the reported number of queues by the device to fill those arrays up. This patch fixes the problem using