OSDN Git Service

bnx2: fix skb truesize underestimation
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 13 Oct 2011 07:50:19 +0000 (07:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2011 20:05:07 +0000 (16:05 -0400)
commita1f4e8bcbccf50cf1894c263af4d677d4f566533
treed10c9a738297aeba1c7c1a4c3be8c62ea385c675
parentbdb28a97f46b5307e6e9351de52a9dd03e711a2f
bnx2: fix skb truesize underestimation

bnx2 allocates a full page per 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>
drivers/net/ethernet/broadcom/bnx2.c