Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1379
b: refs/heads/master
c: 41639fe
h: refs/heads/master
i:
  1377: a000b87
  1375: 02d330f
v: v3
  • Loading branch information
Malli Chilakala authored and Jeff Garzik committed May 13, 2005
1 parent 6a06693 commit 62664af
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 6dfbb6dd391139be9f1cd333877c6e2b03da4bba
refs/heads/master: 41639fed1b32dde4ea3d94242a89308435d341be
8 changes: 6 additions & 2 deletions trunk/drivers/net/ixgb/ixgb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1977,8 +1977,8 @@ ixgb_alloc_rx_buffers(struct ixgb_adapter *adapter)

num_group_tail_writes = IXGB_RX_BUFFER_WRITE;

/* leave one descriptor unused */
while(--cleancount > 0) {
/* leave three descriptors unused */
while(--cleancount > 2) {
rx_desc = IXGB_RX_DESC(*rx_ring, i);

skb = dev_alloc_skb(adapter->rx_buffer_len + NET_IP_ALIGN);
Expand All @@ -2005,6 +2005,10 @@ ixgb_alloc_rx_buffers(struct ixgb_adapter *adapter)
PCI_DMA_FROMDEVICE);

rx_desc->buff_addr = cpu_to_le64(buffer_info->dma);
/* guarantee DD bit not set now before h/w gets descriptor
* this is the rest of the workaround for h/w double
* writeback. */
rx_desc->status = 0;

if((i & ~(num_group_tail_writes- 1)) == i) {
/* Force memory writes to complete before letting h/w
Expand Down

0 comments on commit 62664af

Please sign in to comment.