patch-2.4.0-test4 linux/drivers/net/rcpci45.c
Next file: linux/drivers/net/rtl8129.c
Previous file: linux/drivers/net/ptifddi.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Tue Jul 11 11:12:24 2000
- Orig file:
v2.4.0-test3/linux/drivers/net/rcpci45.c
- Orig date:
Fri Jun 23 21:55:09 2000
diff -u --recursive --new-file v2.4.0-test3/linux/drivers/net/rcpci45.c linux/drivers/net/rcpci45.c
@@ -122,7 +122,7 @@
U32 bus;
U32 function;
struct timer_list timer; /* timer */
- struct enet_statistics stats; /* the statistics structure */
+ struct net_device_stats stats; /* the statistics structure */
struct net_device *next; /* points to the next RC adapter */
unsigned long numOutRcvBuffers;/* number of outstanding receive buffers*/
unsigned char shutdown;
@@ -152,7 +152,7 @@
static int RC_xmit_packet(struct sk_buff *, struct net_device *);
static void RCinterrupt(int, void *, struct pt_regs *);
static int RCclose(struct net_device *dev);
-static struct enet_statistics *RCget_stats(struct net_device *);
+static struct net_device_stats *RCget_stats(struct net_device *);
static int RCioctl(struct net_device *, struct ifreq *, int);
static int RCconfig(struct net_device *, struct ifmap *);
static void RCxmit_callback(U32, U16, PU32, U16);
@@ -936,7 +936,7 @@
return 0;
}
-static struct enet_statistics *
+static struct net_device_stats *
RCget_stats(struct net_device *dev)
{
RCLINKSTATS RCstats;
@@ -1019,7 +1019,7 @@
pDpa->stats.tx_heartbeat_errors = 0;
pDpa->stats.tx_window_errors = 0;
- return ((struct enet_statistics *)&(pDpa->stats));
+ return ((struct net_device_stats *)&(pDpa->stats));
}
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)