aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2007-05-01 16:32:50 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-04 20:59:07 -0400
commit3f5d987e62412ce6540b97b622b03ca9c1677eee (patch)
tree1ed0d4e5064d148f6ad10444cfc59e7791f51757 /drivers
parentbff832cda7bd1a861fd43813c3037119e50e7d93 (diff)
m68k: Amiga A2065 and Ariadne TX statistics
Add missing code to the Amiga A2065 and Ariadne drivers to update net_device_stats.tx_bytes. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/a2065.c4
-rw-r--r--drivers/net/ariadne.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/a2065.c b/drivers/net/a2065.c
index 1226cbba0450..37534f3f8bf3 100644
--- a/drivers/net/a2065.c
+++ b/drivers/net/a2065.c
@@ -562,7 +562,6 @@ static int lance_start_xmit (struct sk_buff *skb, struct net_device *dev)
562 volatile struct lance_init_block *ib = lp->init_block; 562 volatile struct lance_init_block *ib = lp->init_block;
563 int entry, skblen, len; 563 int entry, skblen, len;
564 int status = 0; 564 int status = 0;
565 static int outs;
566 unsigned long flags; 565 unsigned long flags;
567 566
568 skblen = skb->len; 567 skblen = skb->len;
@@ -607,8 +606,7 @@ static int lance_start_xmit (struct sk_buff *skb, struct net_device *dev)
607 /* Now, give the packet to the lance */ 606 /* Now, give the packet to the lance */
608 ib->btx_ring [entry].tmd1_bits = (LE_T1_POK|LE_T1_OWN); 607 ib->btx_ring [entry].tmd1_bits = (LE_T1_POK|LE_T1_OWN);
609 lp->tx_new = (lp->tx_new+1) & lp->tx_ring_mod_mask; 608 lp->tx_new = (lp->tx_new+1) & lp->tx_ring_mod_mask;
610 609 lp->stats.tx_bytes += skblen;
611 outs++;
612 610
613 if (TX_BUFFS_AVAIL <= 0) 611 if (TX_BUFFS_AVAIL <= 0)
614 netif_stop_queue(dev); 612 netif_stop_queue(dev);
diff --git a/drivers/net/ariadne.c b/drivers/net/ariadne.c
index a0e68e718531..a241ae7855a3 100644
--- a/drivers/net/ariadne.c
+++ b/drivers/net/ariadne.c
@@ -677,6 +677,7 @@ static int ariadne_start_xmit(struct sk_buff *skb, struct net_device *dev)
677 priv->cur_tx -= TX_RING_SIZE; 677 priv->cur_tx -= TX_RING_SIZE;
678 priv->dirty_tx -= TX_RING_SIZE; 678 priv->dirty_tx -= TX_RING_SIZE;
679 } 679 }
680 priv->stats.tx_bytes += len;
680 681
681 /* Trigger an immediate send poll. */ 682 /* Trigger an immediate send poll. */
682 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ 683 lance->RAP = CSR0; /* PCnet-ISA Controller Status */