mlx4_en: fix skb truesize underestimation
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 19 Oct 2011 18:49:52 +0000 (18:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2011 08:55:27 +0000 (04:55 -0400)
commit90278c9ffb8a92672d60a618a58a99e2370a98ac
treede680709745df3e6de2bcc8b6df6369f3ddf9b8c
parent8a59a7b94fc56e3ed3054c3c655b646bb631f9bc
mlx4_en: fix skb truesize underestimation

skb->truesize must account for allocated memory, not the used part of
it. Doing this work is important to avoid unexpected OOM situations.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c