]> git.baikalelectronics.ru Git - kernel.git/commit
ehea: Fixing statistics
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Wed, 27 Oct 2010 08:45:14 +0000 (08:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2010 21:24:13 +0000 (14:24 -0700)
commit64e912cf43761f6ceaaef5b940b5b02ab20f2ae8
treeca3ff2670d7a8c12228bdc86d4d0d501facb05a0
parentd9b0978d09e5f2226e940dfb13ef0acfcd633ca4
ehea: Fixing statistics

(Applied over Eric's "ehea: fix use after free" patch)

Currently ehea stats are broken. The bytes counters are got from
the hardware, while the packets counters are got from the device
driver. Also, the device driver counters are resetted during the
the down process, and the hardware aren't, causing some weird
numbers.

This patch just consolidates the packets and bytes on the device
driver.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ehea/ehea.h
drivers/net/ehea/ehea_main.c