Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255649
b: refs/heads/master
c: 73151ce
h: refs/heads/master
i:
  255647: dd7cf0d
v: v3
  • Loading branch information
Richard Cochran authored and David S. Miller committed Jun 21, 2011
1 parent 989ec38 commit 04b7f2c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: e00f85bec0a9924eb517ccd126ddbb9787068f53
refs/heads/master: 73151ce35bd6d56e61a87b2855193f82540bf3d3
6 changes: 4 additions & 2 deletions trunk/drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ static int txq_submit_skb(struct tx_queue *txq, struct sk_buff *skb)
static netdev_tx_t mv643xx_eth_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct mv643xx_eth_private *mp = netdev_priv(dev);
int queue;
int length, queue;
struct tx_queue *txq;
struct netdev_queue *nq;

Expand All @@ -881,10 +881,12 @@ static netdev_tx_t mv643xx_eth_xmit(struct sk_buff *skb, struct net_device *dev)
return NETDEV_TX_OK;
}

length = skb->len;

if (!txq_submit_skb(txq, skb)) {
int entries_left;

txq->tx_bytes += skb->len;
txq->tx_bytes += length;
txq->tx_packets++;

entries_left = txq->tx_ring_size - txq->tx_desc_count;
Expand Down

0 comments on commit 04b7f2c

Please sign in to comment.