diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-08-27 00:12:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-28 04:25:59 +0200 |
commit | 034de00b06fe2b2c451f7435414f15c1b625e6b0 (patch) | |
tree | f5d927349c82bfe6f0c1555e3d7f9675a826713a /drivers/net/slip.h | |
parent | bnx2x: fix wrong return from bnx2x_trylock_hw_lock (diff) | |
download | linux-034de00b06fe2b2c451f7435414f15c1b625e6b0.tar.xz linux-034de00b06fe2b2c451f7435414f15c1b625e6b0.zip |
slip: Use net_device_stats from struct net_device
Use net_device->stats for stats instead of private variable copies in
struct slip. Use ndo_get_stat64 so the additions can be performed on a private
destination buffer.
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/slip.h')
-rw-r--r-- | drivers/net/slip.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/slip.h b/drivers/net/slip.h index 9ea5c11287d2..914e958abbfc 100644 --- a/drivers/net/slip.h +++ b/drivers/net/slip.h @@ -67,15 +67,6 @@ struct slip { int xleft; /* bytes left in XMIT queue */ /* SLIP interface statistics. */ - unsigned long rx_packets; /* inbound frames counter */ - unsigned long tx_packets; /* outbound frames counter */ - unsigned long rx_bytes; /* inbound byte counte */ - unsigned long tx_bytes; /* outbound byte counter */ - unsigned long rx_errors; /* Parity, etc. errors */ - unsigned long tx_errors; /* Planned stuff */ - unsigned long rx_dropped; /* No memory for skb */ - unsigned long tx_dropped; /* When MTU change */ - unsigned long rx_over_errors; /* Frame bigger than SLIP buf. */ #ifdef SL_INCLUDE_CSLIP unsigned long tx_compressed; unsigned long rx_compressed; |