aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-10-13 17:12:46 -0400
committerDavid S. Miller <davem@davemloft.net>2011-10-13 17:12:46 -0400
commit7ae60b3f3b297b7f04025c93f1cb2275c3a1dfcd (patch)
tree3e7fe42254b51e3910161f1abc08f911d3de8983 /drivers/net/ethernet/marvell
parent98a045d7e4a59db0865a59eea2140fe36bc7c220 (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.c2
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 }