Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190232
b: refs/heads/master
c: df245dc
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Kurz authored and David S. Miller committed Apr 21, 2010
1 parent 7cfc5f3 commit b45d83f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc8e4b954e463716a57d8113dd50ae9d47b682a7
refs/heads/master: df245dce572bc22b230a05532a3f9daee50effb5
7 changes: 5 additions & 2 deletions trunk/drivers/net/pcmcia/3c574_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,13 @@ static netdev_tx_t el3_start_xmit(struct sk_buff *skb,
inw(ioaddr + EL3_STATUS));

spin_lock_irqsave(&lp->window_lock, flags);

dev->stats.tx_bytes += skb->len;

/* Put out the doubleword header... */
outw(skb->len, ioaddr + TX_FIFO);
outw(0, ioaddr + TX_FIFO);
/* ... and the packet rounded to a doubleword. */
outsl(ioaddr + TX_FIFO, skb->data, (skb->len+3)>>2);

dev->trans_start = jiffies;
Expand Down Expand Up @@ -1021,8 +1026,6 @@ static void update_stats(struct net_device *dev)
/* BadSSD */ inb(ioaddr + 12);
up = inb(ioaddr + 13);

dev->stats.tx_bytes += tx + ((up & 0xf0) << 12);

EL3WINDOW(1);
}

Expand Down

0 comments on commit b45d83f

Please sign in to comment.