]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2016 19:33:33 +0000 (15:33 -0400)
commitb62cf31fbf3efca7d554c7dc011523ed6b1c6f67
treeffa8201e4c4a2303ef28ca329327b2f60f141c63
parent559d5adc75840775c5dff78be1fc61527e6c0db8
qede: Fix statistics' strings for Tx/Rx queues

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: 6d2ebaf071fd ("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>
drivers/net/ethernet/qlogic/qede/qede_ethtool.c