diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-10-13 17:12:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-13 17:12:46 -0400 |
commit | 7ae60b3f3b297b7f04025c93f1cb2275c3a1dfcd (patch) | |
tree | 3e7fe42254b51e3910161f1abc08f911d3de8983 /drivers/net/ethernet/marvell | |
parent | 98a045d7e4a59db0865a59eea2140fe36bc7c220 (diff) |
sky2: fix skb truesize underestimation
sky2 allocates a page per skb fragment. We must account
PAGE_SIZE increments on skb->truesize, not the actual frag length.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell')
-rw-r--r-- | drivers/net/ethernet/marvell/sky2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c index 6895e3be260c..92634907bf8d 100644 --- a/drivers/net/ethernet/marvell/sky2.c +++ b/drivers/net/ethernet/marvell/sky2.c | |||
@@ -2486,7 +2486,7 @@ static void skb_put_frags(struct sk_buff *skb, unsigned int hdr_space, | |||
2486 | 2486 | ||
2487 | frag->size = size; | 2487 | frag->size = size; |
2488 | skb->data_len += size; | 2488 | skb->data_len += size; |
2489 | skb->truesize += size; | 2489 | skb->truesize += PAGE_SIZE; |
2490 | skb->len += size; | 2490 | skb->len += size; |
2491 | length -= size; | 2491 | length -= size; |
2492 | } | 2492 | } |