be2net: fix truesize errors
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 13 Oct 2011 06:31:02 +0000 (06:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2011 20:05:07 +0000 (16:05 -0400)
commitbdb28a97f46b5307e6e9351de52a9dd03e711a2f
tree279ed51e9bd704630f6399813ae7f5e7e3ebfab7
parent87fb4b7b533073eeeaed0b6bf7c2328995f6c075
be2net: fix truesize errors

Fix skb truesize underestimations of this driver.

Each frag truesize is exactly rx_frag_size bytes. (2048 bytes per
default)

A driver should not use "sizeof(struct sk_buff)" at all.

Signed-off-by: Eric Dumazet <eric.dumazet>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c