summaryrefslogtreecommitdiffstats
path: root/drivers/net/slip.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-08-26 22:12:08 +0000
committerDavid S. Miller <davem@davemloft.net>2010-08-27 19:25:59 -0700
commit034de00b06fe2b2c451f7435414f15c1b625e6b0 (patch)
treef5d927349c82bfe6f0c1555e3d7f9675a826713a /drivers/net/slip.h
parent0fdf4d096102464e290d5ccaee8ad0cee7bd9e8a (diff)
downloadop-kernel-dev-034de00b06fe2b2c451f7435414f15c1b625e6b0.zip
op-kernel-dev-034de00b06fe2b2c451f7435414f15c1b625e6b0.tar.gz
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.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/slip.h b/drivers/net/slip.h
index 9ea5c11..914e958 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;
OpenPOWER on IntegriCloud