net/bnxt: fix getting statistics
authorLance Richardson <lance.richardson@broadcom.com>
Thu, 18 Jul 2019 03:36:13 +0000 (09:06 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit75306ee088915446c50e5525fc657fad28ee6935
tree16c32beed3ec3771e17c40b1d65bf8b61a3262f5
parentf8d9e381bca7a1725d0266fa278468e346a424ef
net/bnxt: fix getting statistics

Avoid overrun in rte_eth_stats struct when the number of tx/rx
rings in use is greater than RTE_ETHDEV_QUEUE_STAT_CNTRS.

Fixes: 57d5e5bc86e4 ("net/bnxt: add statistics")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_stats.c