Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57909
b: refs/heads/master
c: 2bf27a0
h: refs/heads/master
i:
  57907: 01713bd
v: v3
  • Loading branch information
Linas Vepstas authored and Jeff Garzik committed Jun 20, 2007
1 parent 5f6528a commit a1c52bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 4c4bd5a97a87670d2c368ed4ed8a8f2c93080605
refs/heads/master: 2bf27a0d4913a5f0ef38e3be510b1b3add2869ad
18 changes: 9 additions & 9 deletions trunk/drivers/net/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,9 @@ spider_net_prepare_rx_descr(struct spider_net_card *card,
hwdescr->dmac_cmd_status = SPIDER_NET_DESCR_NOT_IN_USE;
} else {
hwdescr->buf_addr = buf;
hwdescr->next_descr_addr = 0;
wmb();
hwdescr->dmac_cmd_status = SPIDER_NET_DESCR_CARDOWNED |
SPIDER_NET_DMAC_NOINTR_COMPLETE;

wmb();
descr->prev->hwdescr->next_descr_addr = descr->bus_addr;
}

return 0;
Expand Down Expand Up @@ -541,12 +537,16 @@ spider_net_refill_rx_chain(struct spider_net_card *card)
static int
spider_net_alloc_rx_skbs(struct spider_net_card *card)
{
int result;
struct spider_net_descr_chain *chain;
struct spider_net_descr_chain *chain = &card->rx_chain;
struct spider_net_descr *start = chain->tail;
struct spider_net_descr *descr = start;

result = -ENOMEM;
/* Link up the hardware chain pointers */
do {
descr->prev->hwdescr->next_descr_addr = descr->bus_addr;
descr = descr->next;
} while (descr != start);

chain = &card->rx_chain;
/* Put at least one buffer into the chain. if this fails,
* we've got a problem. If not, spider_net_refill_rx_chain
* will do the rest at the end of this function. */
Expand All @@ -563,7 +563,7 @@ spider_net_alloc_rx_skbs(struct spider_net_card *card)

error:
spider_net_free_rx_chain_contents(card);
return result;
return -ENOMEM;
}

/**
Expand Down

0 comments on commit a1c52bf

Please sign in to comment.