]> git.karo-electronics.de Git - linux-beck.git/commit
qede: Refactor statistics gathering
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Tue, 29 Nov 2016 14:47:03 +0000 (16:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 19:32:03 +0000 (14:32 -0500)
commit4dbcd6400244a073f579665a957c6c56c99cc3b6
tree560b74893aaa7287f01205bcae5d6b069129d3e7
parent80439a1704e811697ee01fd09dd95dd10790bc93
qede: Refactor statistics gathering

Refactor logic for gathering statistics into a per-queue function.
This improves readability of the driver statistics' flows.

In addition, this would be required by the XDP forwarding queues
[as we'll need the Txq statistics gathering methods for those as well].

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