Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266682
b: refs/heads/master
c: e7e5a40
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 14, 2011
1 parent 6e04985 commit d8e7e89
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: 5e6c355c47e75314fd2282d087616069d4093ecf
refs/heads/master: e7e5a4033f765e2a37095cd0a73261c99840f77e
12 changes: 4 additions & 8 deletions trunk/drivers/net/ethernet/sun/niu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3287,17 +3287,13 @@ static u16 tcam_get_valid_entry_cnt(struct niu *np)
}

static void niu_rx_skb_append(struct sk_buff *skb, struct page *page,
u32 offset, u32 size)
u32 offset, u32 size, u32 truesize)
{
int i = skb_shinfo(skb)->nr_frags;

__skb_fill_page_desc(skb, i, page, offset, size);
skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags, page, offset, size);

skb->len += size;
skb->data_len += size;
skb->truesize += size;

skb_shinfo(skb)->nr_frags = i + 1;
skb->truesize += truesize;
}

static unsigned int niu_hash_rxaddr(struct rx_ring_info *rp, u64 a)
Expand Down Expand Up @@ -3480,7 +3476,7 @@ static int niu_process_rx_pkt(struct napi_struct *napi, struct niu *np,
} else if (!(val & RCR_ENTRY_MULTI))
append_size = len - skb->len;

niu_rx_skb_append(skb, page, off, append_size);
niu_rx_skb_append(skb, page, off, append_size, rcr_size);
if ((page->index + rp->rbr_block_size) - rcr_size == addr) {
*link = (struct page *) page->mapping;
np->ops->unmap_page(np->device, page->index,
Expand Down

0 comments on commit d8e7e89

Please sign in to comment.