Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46519
b: refs/heads/master
c: a4182c5
h: refs/heads/master
i:
  46517: bb4da10
  46515: 12e3c66
  46511: e6d4aae
v: v3
  • Loading branch information
Linas Vepstas authored and Jeff Garzik committed Feb 5, 2007
1 parent 4c17647 commit 89dbefc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 80dab7c7e5b7c4e53e9423c22375bfd9cbf7f2c3
refs/heads/master: a4182c50bcd6a20caae82c202436fe892f642150
13 changes: 6 additions & 7 deletions trunk/drivers/net/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,21 +367,20 @@ spider_net_free_rx_chain_contents(struct spider_net_card *card)
}

/**
* spider_net_prepare_rx_descr - reinitializes a rx descriptor
* spider_net_prepare_rx_descr - Reinitialize RX descriptor
* @card: card structure
* @descr: descriptor to re-init
*
* return 0 on succes, <0 on failure
* Return 0 on succes, <0 on failure.
*
* allocates a new rx skb, iommu-maps it and attaches it to the descriptor.
* Activate the descriptor state-wise
* Allocates a new rx skb, iommu-maps it and attaches it to the
* descriptor. Mark the descriptor as activated, ready-to-use.
*/
static int
spider_net_prepare_rx_descr(struct spider_net_card *card,
struct spider_net_descr *descr)
{
dma_addr_t buf;
int error = 0;
int offset;
int bufsize;

Expand Down Expand Up @@ -409,7 +408,7 @@ spider_net_prepare_rx_descr(struct spider_net_card *card,
(SPIDER_NET_RXBUF_ALIGN - 1);
if (offset)
skb_reserve(descr->skb, SPIDER_NET_RXBUF_ALIGN - offset);
/* io-mmu-map the skb */
/* iommu-map the skb */
buf = pci_map_single(card->pdev, descr->skb->data,
SPIDER_NET_MAX_FRAME, PCI_DMA_FROMDEVICE);
descr->buf_addr = buf;
Expand All @@ -424,7 +423,7 @@ spider_net_prepare_rx_descr(struct spider_net_card *card,
SPIDER_NET_DMAC_NOINTR_COMPLETE;
}

return error;
return 0;
}

/**
Expand Down

0 comments on commit 89dbefc

Please sign in to comment.