patch-2.1.25 linux/drivers/net/atari_bionet.c

Next file: linux/drivers/net/atari_pamsnet.c
Previous file: linux/drivers/net/at1700.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.24/linux/drivers/net/atari_bionet.c linux/drivers/net/atari_bionet.c
@@ -136,7 +136,7 @@
 /* Information that need to be kept for each board.
  */
 struct net_local {
-	struct enet_statistics stats;
+	struct net_device_stats stats;
 	long open_time;			/* for debugging */
 	int  poll_time;			/* polling time varies with net load */
 };
@@ -157,7 +157,7 @@
 static int bionet_send_packet(struct sk_buff *skb, struct device *dev);
 static void bionet_poll_rx(struct device *);
 static int bionet_close(struct device *dev);
-static struct enet_statistics *net_get_stats(struct device *dev);
+static struct net_device_stats *net_get_stats(struct device *dev);
 static void bionet_tick(unsigned long);
 
 static struct timer_list bionet_timer = { NULL, NULL, 0, 0, bionet_tick };
@@ -594,8 +594,8 @@
 /* Get the current statistics.
    This may be called with the card open or closed.
  */
-static struct enet_statistics *
-net_get_stats(struct device *dev) {
+static struct net_device_stats *net_get_stats(struct device *dev) 
+{
 	struct net_local *lp = (struct net_local *)dev->priv;
 	return &lp->stats;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov