patch-2.1.25 linux/drivers/net/eql.c
Next file: linux/drivers/net/eth16i.c
Previous file: linux/drivers/net/eexpress.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Sun Feb 2 15:18:39 1997
- Orig file:
v2.1.24/linux/drivers/net/eql.c
- Orig date:
Thu Jan 23 21:06:47 1997
diff -u --recursive --new-file v2.1.24/linux/drivers/net/eql.c linux/drivers/net/eql.c
@@ -155,7 +155,7 @@
static int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /* */
static int eql_slave_xmit(struct sk_buff *skb, struct device *dev); /* */
-static struct enet_statistics *eql_get_stats(struct device *dev); /* */
+static struct net_device_stats *eql_get_stats(struct device *dev); /* */
/* ioctl() handlers
---------------- */
@@ -225,14 +225,14 @@
memset (dev->priv, 0, sizeof (equalizer_t));
eql = (equalizer_t *) dev->priv;
- eql->stats = kmalloc (sizeof (struct enet_statistics), GFP_KERNEL);
+ eql->stats = kmalloc (sizeof (struct net_device_stats), GFP_KERNEL);
if (eql->stats == NULL)
{
kfree(dev->priv);
dev->priv = NULL;
return -ENOMEM;
}
- memset (eql->stats, 0, sizeof (struct enet_statistics));
+ memset (eql->stats, 0, sizeof (struct net_device_stats));
init_timer (&eql->timer);
eql->timer.data = (unsigned long) dev->priv;
@@ -398,7 +398,7 @@
}
-static struct enet_statistics * eql_get_stats(struct device *dev)
+static struct net_device_stats * eql_get_stats(struct device *dev)
{
equalizer_t *eql = (equalizer_t *) dev->priv;
return eql->stats;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov