aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/slip.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-08-26 18:12:08 -0400
committerDavid S. Miller <davem@davemloft.net>2010-08-27 22:25:59 -0400
commit034de00b06fe2b2c451f7435414f15c1b625e6b0 (patch)
treef5d927349c82bfe6f0c1555e3d7f9675a826713a /drivers/net/slip.h
parent0fdf4d096102464e290d5ccaee8ad0cee7bd9e8a (diff)
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 9ea5c11287d2..914e958abbfc 100644
--- a/drivers/net/slip.h
+++ b/drivers/net/slip.h
@@ -67,15 +67,6 @@ struct slip {
67 int xleft; /* bytes left in XMIT queue */ 67 int xleft; /* bytes left in XMIT queue */
68 68
69 /* SLIP interface statistics. */ 69 /* SLIP interface statistics. */
70 unsigned long rx_packets; /* inbound frames counter */
71 unsigned long tx_packets; /* outbound frames counter */
72 unsigned long rx_bytes; /* inbound byte counte */
73 unsigned long tx_bytes; /* outbound byte counter */
74 unsigned long rx_errors; /* Parity, etc. errors */
75 unsigned long tx_errors; /* Planned stuff */
76 unsigned long rx_dropped; /* No memory for skb */
77 unsigned long tx_dropped; /* When MTU change */
78 unsigned long rx_over_errors; /* Frame bigger than SLIP buf. */
79#ifdef SL_INCLUDE_CSLIP 70#ifdef SL_INCLUDE_CSLIP
80 unsigned long tx_compressed; 71 unsigned long tx_compressed;
81 unsigned long rx_compressed; 72 unsigned long rx_compressed;