Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130131
b: refs/heads/master
c: 6a2fe98
h: refs/heads/master
i:
  130129: b0c7aeb
  130127: 819327d
v: v3
  • Loading branch information
Phil Sutter authored and David S. Miller committed Jan 20, 2009
1 parent c7adedf commit a9a5ee4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: eed087e367591fc08490d7c6c2779b4b72c8f20c
refs/heads/master: 6a2fe9834e578590f4a2fbe18a574465ab0e127c
9 changes: 5 additions & 4 deletions trunk/drivers/net/korina.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,11 +769,12 @@ static void korina_alloc_ring(struct net_device *dev)
lp->rd_ring[i].link = CPHYSADDR(&lp->rd_ring[i+1]);
}

/* loop back */
lp->rd_ring[i].link = CPHYSADDR(&lp->rd_ring[0]);
lp->rx_next_done = 0;
/* loop back receive descriptors, so the last
* descriptor points to the first one */
lp->rd_ring[i - 1].link = CPHYSADDR(&lp->rd_ring[0]);
lp->rd_ring[i - 1].control |= DMA_DESC_COD;

lp->rd_ring[i].control |= DMA_DESC_COD;
lp->rx_next_done = 0;
lp->rx_chain_head = 0;
lp->rx_chain_tail = 0;
lp->rx_chain_status = desc_empty;
Expand Down

0 comments on commit a9a5ee4

Please sign in to comment.