net/qede: fix per queue statisitics
authorRasesh Mody <rasesh.mody@cavium.com>
Fri, 6 Jan 2017 08:16:48 +0000 (00:16 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:54 +0000 (19:40 +0100)
commit06e83c4e9ffbb1b30bbe5cb92ebb6eb255f0d579
treea347623c3592c78cbbac90917fea34f52ca6bbd8
parent9dd9cb4274e573d8bc927327f7a73f1a881746f6
net/qede: fix per queue statisitics

If value of number of rxq/txq is different than
RTE_ETHDEV_QUEUE_STAT_CNTRS, limit per queue
stats/xstats to minimum of the two.

Fixes: 7634c5f91569 ("net/qede: add queue statistics")

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/qede_ethdev.c