]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: fix skb truesize underestimation
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 19 Oct 2011 23:00:23 +0000 (23:00 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 10:12:23 +0000 (18:12 +0800)
commit39c2069f05c94c691719ef0f211cafa3f9380cf9
tree16d2e0d9653ae84a3a89060306385baf068ef9f6
parent6f6c6d2a5c93f204026cfe16bddbc72c64c622a9
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.

(cherry picked from commit e1ac50f64691de9a095ac5d73cb8ac73d3d17dba)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_cmn.c