Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224946
b: refs/heads/master
c: 51c56f4
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings committed Dec 6, 2010
1 parent 313e48b commit 591b8e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: ab28c12a8e6fea875b6757052e211772f62fa771
refs/heads/master: 51c56f40ef41ca780ff001d59727eda03fa39374
5 changes: 2 additions & 3 deletions trunk/drivers/net/sfc/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,7 @@ netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skb)
* of read_count. */
smp_mb();
tx_queue->old_read_count =
*(volatile unsigned *)
&tx_queue->read_count;
ACCESS_ONCE(tx_queue->read_count);
fill_level = (tx_queue->insert_count
- tx_queue->old_read_count);
q_space = efx->txq_entries - 1 - fill_level;
Expand Down Expand Up @@ -764,7 +763,7 @@ static int efx_tx_queue_insert(struct efx_tx_queue *tx_queue,
* stopped from the access of read_count. */
smp_mb();
tx_queue->old_read_count =
*(volatile unsigned *)&tx_queue->read_count;
ACCESS_ONCE(tx_queue->read_count);
fill_level = (tx_queue->insert_count
- tx_queue->old_read_count);
q_space = efx->txq_entries - 1 - fill_level;
Expand Down

0 comments on commit 591b8e9

Please sign in to comment.