]> git.baikalelectronics.ru Git - kernel.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)
commit80913091303d576f764af6dba5f24c8b7eee4912
tree3e8919c3f81d3434d5252ede948d992a1a25deb0
parentc66a0516ba5cd6c14d8a79d2bcc466a18d264443
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