patch-2.4.0-test4 linux/drivers/net/strip.c

Next file: linux/drivers/net/sunbmac.c
Previous file: linux/drivers/net/sonic.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test3/linux/drivers/net/strip.c linux/drivers/net/strip.c
@@ -2430,12 +2430,12 @@
     return 0;
 }
 
-static struct enet_statistics *strip_get_stats(struct net_device *dev)
+static struct net_device_stats *strip_get_stats(struct net_device *dev)
 {
-    static struct enet_statistics stats;
+    static struct net_device_stats stats;
     struct strip *strip_info = (struct strip *)(dev->priv);
 
-    memset(&stats, 0, sizeof(struct enet_statistics));
+    memset(&stats, 0, sizeof(struct net_device_stats));
 
     stats.rx_packets     = strip_info->rx_packets;
     stats.tx_packets     = strip_info->tx_packets;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)