patch-2.0.37 linux/drivers/net/eql.c
Next file: linux/drivers/net/eth16i.c
Previous file: linux/drivers/net/epic100.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Sun Jun 13 10:21:01 1999
- Orig file:
v2.0.36/linux/drivers/net/eql.c
- Orig date:
Mon Jul 13 13:46:29 1998
diff -u --recursive --new-file v2.0.36/linux/drivers/net/eql.c linux/drivers/net/eql.c
@@ -389,8 +389,8 @@
eql_schedule_slaves (eql->queue);
- slave_dev = eql_best_slave_dev (eql->queue);
slave = eql_best_slave (eql->queue);
+ slave_dev = slave ? slave->dev : 0;
if ( slave_dev != 0 )
{
@@ -426,9 +426,9 @@
if (slave_dev->hard_header == NULL
|| slave_dev->hard_header(skb,slave_dev,
ETH_P_IP,NULL,NULL,skb->len) >= 0) {
+ slave->bytes_queued += skb->len;
dev_queue_xmit (skb, slave_dev, 1);
eql->stats->tx_packets++;
- slave->bytes_queued += skb->len;
/* dev_kfree_skb(skb, FREE_WRITE); */
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov