]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sfc: Fix interface statistics running backward
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 4 Jul 2012 21:25:07 +0000 (22:25 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 17 Jul 2012 15:12:34 +0000 (16:12 +0100)
commitb7f514af7d6f36bc2f683e04a909c95e4744b95b
tree3e8919c3f81d3434d5252ede948d992a1a25deb0
parentd4f2cecce138c34960c467d0ae38a6d4bcd6af7b
sfc: Fix interface statistics running backward

Some interface statistics are computed in such a way that they can
sometimes decrease (and even underflow).  Since the computed value
will never be greater than the true value, we fix this by only storing
the computed value when it increases.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/falcon_xmac.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/siena.c