Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291391
b: refs/heads/master
c: 5c49035
h: refs/heads/master
i:
  291389: 0a1196c
  291387: aa9c18f
  291383: d3b7185
  291375: 6e84b0e
  291359: 59355f0
  291327: a10edc5
v: v3
  • Loading branch information
Alexander Duyck authored and Jeff Kirsher committed Mar 13, 2012
1 parent 98980c3 commit b9e58eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 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: b2d96e0ac07cf4929c6b0eb13121672048368117
refs/heads/master: 5c4903549c05bbb373479e0ce2992573c120654a
3 changes: 2 additions & 1 deletion trunk/drivers/net/ethernet/intel/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2752,6 +2752,8 @@ void igb_configure_tx_ring(struct igb_adapter *adapter,

txdctl |= E1000_TXDCTL_QUEUE_ENABLE;
wr32(E1000_TXDCTL(reg_idx), txdctl);

netdev_tx_reset_queue(txring_txq(ring));
}

/**
Expand Down Expand Up @@ -3244,7 +3246,6 @@ static void igb_clean_tx_ring(struct igb_ring *tx_ring)
buffer_info = &tx_ring->tx_buffer_info[i];
igb_unmap_and_free_tx_resource(tx_ring, buffer_info);
}
netdev_tx_reset_queue(txring_txq(tx_ring));

size = sizeof(struct igb_tx_buffer) * tx_ring->count;
memset(tx_ring->tx_buffer_info, 0, size);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,7 @@ static inline void netdev_completed_queue(struct net_device *dev,
static inline void netdev_tx_reset_queue(struct netdev_queue *q)
{
#ifdef CONFIG_BQL
clear_bit(__QUEUE_STATE_STACK_XOFF, &q->state);
dql_reset(&q->dql);
#endif
}
Expand Down

0 comments on commit b9e58eb

Please sign in to comment.