Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150753
b: refs/heads/master
c: 963267b
h: refs/heads/master
i:
  150751: a8b1e25
v: v3
  • Loading branch information
Maciej W. Rozycki authored and David S. Miller committed Jun 8, 2009
1 parent 80f844e commit e7c8d46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe93299a008a7056fe1790744b3a425ddf79a16b
refs/heads/master: 963267bc5d4de4a0da104a64300375d186575332
5 changes: 5 additions & 0 deletions trunk/drivers/net/declance.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
struct lance_private *lp = netdev_priv(dev);
volatile struct lance_regs *ll = lp->ll;
volatile u16 *ib = (volatile u16 *)dev->mem_start;
unsigned long flags;
int entry, len;

len = skb->len;
Expand All @@ -907,6 +908,8 @@ static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev)

dev->stats.tx_bytes += len;

spin_lock_irqsave(&lp->lock, flags);

entry = lp->tx_new;
*lib_ptr(ib, btx_ring[entry].length, lp->type) = (-len);
*lib_ptr(ib, btx_ring[entry].misc, lp->type) = 0;
Expand All @@ -925,6 +928,8 @@ static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
/* Kick the lance: transmit now */
writereg(&ll->rdp, LE_C0_INEA | LE_C0_TDMD);

spin_unlock_irqrestore(&lp->lock, flags);

dev->trans_start = jiffies;
dev_kfree_skb(skb);

Expand Down

0 comments on commit e7c8d46

Please sign in to comment.