Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278277
b: refs/heads/master
c: 298376d
h: refs/heads/master
i:
  278275: 432e7e2
v: v3
  • Loading branch information
Tom Herbert authored and David S. Miller committed Nov 29, 2011
1 parent 8bdcd42 commit 6f63f8b
Show file tree
Hide file tree
Showing 2 changed files with 9 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: b8bfca9439d4ed03446bc9a3fdaef81b364d32dd
refs/heads/master: 298376d3e8f00147548c426959ce79efc47b669a
8 changes: 8 additions & 0 deletions trunk/drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -5302,6 +5302,7 @@ static void tg3_tx(struct tg3_napi *tnapi)
u32 sw_idx = tnapi->tx_cons;
struct netdev_queue *txq;
int index = tnapi - tp->napi;
unsigned int pkts_compl = 0, bytes_compl = 0;

if (tg3_flag(tp, ENABLE_TSS))
index--;
Expand Down Expand Up @@ -5352,6 +5353,9 @@ static void tg3_tx(struct tg3_napi *tnapi)
sw_idx = NEXT_TX(sw_idx);
}

pkts_compl++;
bytes_compl += skb->len;

dev_kfree_skb(skb);

if (unlikely(tx_bug)) {
Expand All @@ -5360,6 +5364,8 @@ static void tg3_tx(struct tg3_napi *tnapi)
}
}

netdev_completed_queue(tp->dev, pkts_compl, bytes_compl);

tnapi->tx_cons = sw_idx;

/* Need to make the tx_cons update visible to tg3_start_xmit()
Expand Down Expand Up @@ -6804,6 +6810,7 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
}

skb_tx_timestamp(skb);
netdev_sent_queue(tp->dev, skb->len);

/* Packets are ready, update Tx producer idx local and on card. */
tw32_tx_mbox(tnapi->prodmbox, entry);
Expand Down Expand Up @@ -7286,6 +7293,7 @@ static void tg3_free_rings(struct tg3 *tp)
dev_kfree_skb_any(skb);
}
}
netdev_reset_queue(tp->dev);
}

/* Initialize tx/rx rings for packet processing.
Expand Down

0 comments on commit 6f63f8b

Please sign in to comment.