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

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

diff -u --recursive --new-file v2.1.24/linux/drivers/net/atari_pamsnet.c linux/drivers/net/atari_pamsnet.c
@@ -134,7 +134,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 */
 };
@@ -167,7 +167,7 @@
 static int pamsnet_send_packet(struct sk_buff *skb, struct device *dev);
 static void pamsnet_poll_rx(struct device *);
 static int pamsnet_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 pamsnet_tick(unsigned long);
 
 static void pamsnet_intr(int irq, void *data, struct pt_regs *fp);
@@ -866,8 +866,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