Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179104
b: refs/heads/master
c: 530e557
h: refs/heads/master
v: v3
  • Loading branch information
Saeed Bishara authored and David S. Miller committed Jan 7, 2010
1 parent 7df5b2d commit f8aa15d
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 2467ab9590092ffdf837e9283e84dedd04c93ab3
refs/heads/master: 530e557ab268de154609f3cce2f2390e7b195af3
6 changes: 4 additions & 2 deletions trunk/drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ static int rxq_refill(struct rx_queue *rxq, int budget)
struct sk_buff *skb;
int rx;
struct rx_desc *rx_desc;
int size;

skb = __skb_dequeue(&mp->rx_recycle);
if (skb == NULL)
Expand All @@ -678,10 +679,11 @@ static int rxq_refill(struct rx_queue *rxq, int budget)

rx_desc = rxq->rx_desc_area + rx;

size = skb->end - skb->data;
rx_desc->buf_ptr = dma_map_single(mp->dev->dev.parent,
skb->data, mp->skb_size,
skb->data, size,
DMA_FROM_DEVICE);
rx_desc->buf_size = mp->skb_size;
rx_desc->buf_size = size;
rxq->rx_skb[rx] = skb;
wmb();
rx_desc->cmd_sts = BUFFER_OWNED_BY_DMA | RX_ENABLE_INTERRUPT;
Expand Down

0 comments on commit f8aa15d

Please sign in to comment.