linux/drivers/net/ethernet
david decotigny 674aee3b35 forcedeth: fix stats on hardware without extended stats support
This change makes sure that tx_packets/rx_bytes ifconfig counters are
updated even on NICs that don't provide hardware support for these
stats: they are now updated in software. For the sake of consistency,
we also now have tx_bytes updated in software (hardware counters
include ethernet CRC, and software doesn't account for it).

This reverts parts of:
 - "forcedeth: statistics optimization" (21828163b2)
 - "forcedeth: Improve stats counters" (0bdfea8ba8)
 - "forcedeth: remove unneeded stats updates" (4687f3f364)

Tested:
  pktgen + loopback (http://patchwork.ozlabs.org/patch/124698/)
  reports identical tx_packets/rx_packets and tx_bytes/rx_bytes.

Signed-off-by: David Decotigny <david.decotigny@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 898bdf2cb4)
2011-11-16 23:14:01 -05:00
..
3com sweep the floors and convert some .get_drvinfo routines to strlcpy 2011-11-08 15:11:57 -05:00
8390 ethernet: Convert ETHER_ADDR_LEN uses to ETH_ALEN 2011-11-16 20:23:17 -05:00
adaptec sweep the floors and convert some .get_drvinfo routines to strlcpy 2011-11-08 15:11:57 -05:00
adi
aeroflex
alteon
amd amd8111e: Convert ETH_ADDR_LEN uses to ETH_ALEN 2011-11-16 20:23:18 -05:00
apple
atheros net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
broadcom ethernet: Convert ETHER_ADDR_LEN uses to ETH_ALEN 2011-11-16 20:23:17 -05:00
brocade bna: Convert MAC_ADDRLEN uses to ETH_ALEN 2011-11-16 20:23:18 -05:00
cadence
chelsio net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
cirrus
cisco Sweep the last of the active .get_drvinfo floors under ethernet/ 2011-11-14 14:13:31 -05:00
davicom net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
dec sweep the floors and convert some .get_drvinfo routines to strlcpy 2011-11-08 15:11:57 -05:00
dlink sweep the floors and convert some .get_drvinfo routines to strlcpy 2011-11-08 15:11:57 -05:00
emulex be2net: Use V1 query link status command for lancer 2011-11-16 18:07:10 -05:00
faraday
freescale ucc_geth: Convert ENET_NUM_OCTETS_PER_ADDRESS uses to ETH_ALEN 2011-11-16 20:23:18 -05:00
fujitsu net: sweep-up some straglers in strlcpy conversion of .get_drvinfo routines 2011-11-16 17:38:55 -05:00
hp
i825xx sweep the floors and convert some .get_drvinfo routines to strlcpy 2011-11-08 15:11:57 -05:00
ibm net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
icplus
intel Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next 2011-11-16 18:31:56 -05:00
marvell net: drivers: use bool type instead of double negation 2011-11-16 23:12:20 -05:00
mellanox Sweep the last of the active .get_drvinfo floors under ethernet/ 2011-11-14 14:13:31 -05:00
micrel ethernet: Convert MAC_ADDR_LEN uses to ETH_ALEN 2011-11-16 20:23:17 -05:00
microchip
myricom net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
natsemi sweep the floors and convert some .get_drvinfo routines to strlcpy 2011-11-08 15:11:57 -05:00
neterion net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
nuvoton
nvidia forcedeth: fix stats on hardware without extended stats support 2011-11-16 23:14:01 -05:00
octeon
oki-semi net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
packetengines
pasemi
qlogic net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
racal
rdc
realtek ethernet: Convert MAC_ADDR_LEN uses to ETH_ALEN 2011-11-16 20:23:17 -05:00
renesas
seeq
sfc net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
sgi
silan
sis ethernet: Convert MAC_ADDR_LEN uses to ETH_ALEN 2011-11-16 20:23:17 -05:00
smsc net: sweep-up some straglers in strlcpy conversion of .get_drvinfo routines 2011-11-16 17:38:55 -05:00
stmicro net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
sun net: Add ethtool to mii advertisment conversion helpers 2011-11-16 18:36:59 -05:00
tehuti
ti
tile
toshiba
tundra
via Sweep additional floors of strcpy in .get_drvinfo routines 2011-11-14 00:35:46 -05:00
xilinx ll_temac: Add support for phy_mii_ioctl 2011-11-08 15:13:38 -05:00
xircom sweep the floors and convert some .get_drvinfo routines to strlcpy 2011-11-08 15:11:57 -05:00
xscale
dnet.c sweep the floors and convert some .get_drvinfo routines to strlcpy 2011-11-08 15:11:57 -05:00
dnet.h
ethoc.c
fealnx.c sweep the floors and convert some .get_drvinfo routines to strlcpy 2011-11-08 15:11:57 -05:00
jme.c net: drivers: use bool type instead of double negation 2011-11-16 23:12:20 -05:00
jme.h
Kconfig
korina.c
lantiq_etop.c
Makefile
mipsnet.c
netx-eth.c
s6gmac.c