]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qede: Fix statistics' strings for Tx/Rx queues
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Sun, 30 Oct 2016 08:25:42 +0000 (10:25 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 05:00:06 +0000 (21:00 -0800)
commit39b1995a8b7a034a66459a6752fc28f311ce167b
treeec48ff6c31f1a5cb52ebad6099f932597ba644b8
parent56f5dd026b021b43f25e3e7354212c695a283d79
qede: Fix statistics' strings for Tx/Rx queues

Orabug: 25477939

When an interface is configured to use Tx/Rx-only queues,
the length of the statistics would be shortened to accomodate only the
statistics required per-each queue, and the values would be provided
accordingly.
However, the strings provided would still contain both Tx and Rx strings
for each one of the queues [regardless of its configuration], which might
lead to out-of-bound access when filling the buffers as well as incorrect
statistics presented.

Fixes: 9a4d7e86acf3 ("qede: Add support for Tx/Rx-only queues.")
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit cbbf049a7c346180cc61ae0a9245c5d749d20a12)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/qlogic/qede/qede_ethtool.c