]> git.baikalelectronics.ru Git - kernel.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)
commitd581a8d377bd52897745bcfabb310e7d4f317f59
tree560b74893aaa7287f01205bcae5d6b069129d3e7
parentdc4ecc1f23dd3836df3deeded1c37b1706a312d7
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