Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265714
b: refs/heads/master
c: 134b413
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and David S. Miller committed Sep 15, 2011
1 parent c5b3360 commit 86cec52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: e859ce4c64dd124ec4e2da31159a89e33e7ed7fc
refs/heads/master: 134b413ca3a1055608495bbb60caeb754a073766
7 changes: 2 additions & 5 deletions trunk/drivers/net/ethernet/sun/niu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3290,11 +3290,8 @@ static void niu_rx_skb_append(struct sk_buff *skb, struct page *page,
u32 offset, u32 size)
{
int i = skb_shinfo(skb)->nr_frags;
skb_frag_t *frag = &skb_shinfo(skb)->frags[i];

frag->page = page;
frag->page_offset = offset;
frag->size = size;
__skb_fill_page_desc(skb, i, page, offset, size);

skb->len += size;
skb->data_len += size;
Expand Down Expand Up @@ -6737,7 +6734,7 @@ static netdev_tx_t niu_start_xmit(struct sk_buff *skb,
skb_frag_t *frag = &skb_shinfo(skb)->frags[i];

len = frag->size;
mapping = np->ops->map_page(np->device, frag->page,
mapping = np->ops->map_page(np->device, skb_frag_page(frag),
frag->page_offset, len,
DMA_TO_DEVICE);

Expand Down

0 comments on commit 86cec52

Please sign in to comment.