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/sky2.c | |
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/sky2.c')
-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 6895e3be260..92634907bf8 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, frag->size = size; skb->data_len += size; - skb->truesize += size; + skb->truesize += PAGE_SIZE; skb->len += size; length -= size; } |