Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46587
b: refs/heads/master
c: d9a9720
h: refs/heads/master
i:
  46585: 46434dc
  46583: 5c64941
v: v3
  • Loading branch information
Linas Vepstas authored and Jeff Garzik committed Feb 7, 2007
1 parent e7c8de2 commit 4060630
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: b7e36bfa9ffa2f6097b622ba07a95d823db553e4
refs/heads/master: d9a9720eab7437aa7f34dcbb92bb4bc8cc36bba9
12 changes: 4 additions & 8 deletions trunk/drivers/net/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,13 @@ spider_net_prepare_rx_descr(struct spider_net_card *card,
card->spider_stats.rx_iommu_map_error++;
descr->dmac_cmd_status = SPIDER_NET_DESCR_NOT_IN_USE;
} else {
descr->next_descr_addr = 0;
wmb();
descr->dmac_cmd_status = SPIDER_NET_DESCR_CARDOWNED |
SPIDER_NET_DMAC_NOINTR_COMPLETE;

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

return 0;
Expand Down Expand Up @@ -1650,7 +1654,6 @@ int
spider_net_open(struct net_device *netdev)
{
struct spider_net_card *card = netdev_priv(netdev);
struct spider_net_descr *descr;
int result;

result = spider_net_init_chain(card, &card->tx_chain);
Expand All @@ -1662,13 +1665,6 @@ spider_net_open(struct net_device *netdev)
if (result)
goto alloc_rx_failed;

/* Make a ring of of bus addresses */
descr = card->rx_chain.ring;
do {
descr->next_descr_addr = descr->next->bus_addr;
descr = descr->next;
} while (descr != card->rx_chain.ring);

/* Allocate rx skbs */
if (spider_net_alloc_rx_skbs(card))
goto alloc_skbs_failed;
Expand Down

0 comments on commit 4060630

Please sign in to comment.