bnx2x: fix skb truesize underestimation
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 19 Oct 2011 23:00:23 +0000 (23:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Oct 2011 06:52:59 +0000 (02:52 -0400)
commite1ac50f64691de9a095ac5d73cb8ac73d3d17dba
tree5609aebc6b2f119627c13ea2295d76d3ff047e77
parenta8605c6063f785858c1bc431d0bfe66c41e71cfa
bnx2x: fix skb truesize underestimation

bnx2x allocates a full page per fragment.

We must account in skb->truesize, the size of the fragment, not the used
part of it.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c