Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231781
b: refs/heads/master
c: e6f597a
h: refs/heads/master
i:
  231779: e05b38c
v: v3
  • Loading branch information
Andres Salomon authored and Linus Torvalds committed Jan 18, 2011
1 parent 008fdb0 commit a6ee6b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 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: 6845a44a314c0c626549de373131bf108f9cc1f1
refs/heads/master: e6f597a1425b5af64917be3448b29e2d5a585ac8
7 changes: 3 additions & 4 deletions trunk/drivers/staging/bcm/Qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,11 @@ static VOID PruneQueue(PMINI_ADAPTER Adapter, INT iIndex)

if(PacketToDrop)
{
struct netdev_queue *txq = netdev_get_tx_queue(Adapter->dev, iIndex);
if (netif_msg_tx_err(Adapter))
pr_info(PFX "%s: tx queue %d overlimit\n",
Adapter->dev->name, iIndex);

txq->tx_dropped++;
netstats->tx_dropped++;

DEQUEUEPACKET(Adapter->PackInfo[iIndex].FirstTxQueue,
Adapter->PackInfo[iIndex].LastTxQueue);
Expand Down Expand Up @@ -404,7 +403,7 @@ VOID flush_all_queues(PMINI_ADAPTER Adapter)
// down(&Adapter->data_packet_queue_lock);
for(iQIndex=LowPriority; iQIndex<HiPriority; iQIndex++)
{
struct netdev_queue *txq = netdev_get_tx_queue(Adapter->dev, iQIndex);
struct net_device_stats *netstats = &Adapter->dev->stats;

spin_lock_bh(&Adapter->PackInfo[iQIndex].SFQueueLock);
while(Adapter->PackInfo[iQIndex].FirstTxQueue)
Expand All @@ -413,7 +412,7 @@ VOID flush_all_queues(PMINI_ADAPTER Adapter)
if(PacketToDrop)
{
uiTotalPacketLength = PacketToDrop->len;
txq->tx_dropped++;
netstats->tx_dropped++;
}
else
uiTotalPacketLength = 0;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/bcm/Transmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ INT SetupNextSend(PMINI_ADAPTER Adapter, struct sk_buff *Packet, USHORT Vcid)
}
else
{
struct netdev_queue *txq = netdev_get_tx_queue(Adapter->dev, QueueIndex);
struct net_device_stats *netstats = &Adapter->dev->stats;
Adapter->PackInfo[QueueIndex].uiTotalTxBytes += Leader.PLength;

txq->tx_bytes += Leader.PLength;
++txq->tx_packets;
netstats->tx_bytes += Leader.PLength;
++netstats->tx_packets;

Adapter->PackInfo[QueueIndex].uiCurrentTokenCount -= Leader.PLength << 3;
Adapter->PackInfo[QueueIndex].uiSentBytes += (Packet->len);
Expand Down

0 comments on commit a6ee6b9

Please sign in to comment.