]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
gianfar: Fix stats support
authorSandeep Gopalpet <sandeep.kumar@freescale.com>
Wed, 16 Dec 2009 01:15:07 +0000 (01:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Dec 2009 04:38:37 +0000 (20:38 -0800)
commita7f38041b8c38d0721b042c123bd5d6bd2d21feb
tree375dc0df2bf89ac9502972b986018dd16fa9dad6
parent1ccb8389f26f2d513b06abe45d8e0b8f32458302
gianfar: Fix stats support

This patch updates the per rx/tx queue stats.
To update the per rx queue stats a new structure has been
introduced rx_q_stats.
The per tx queue stats are updated via the netdev_queue
structure itself.

Note that we update only the tx_packtes, tx_bytes, rx_packets,
rx_bytes and rx_dropped stats on a per queue basis.

Signed-off-by: Sandeep Gopalpet <Sandeep.Kumar@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c
drivers/net/gianfar.h