summaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-11-29 22:48:46 +0000
committerDavid S. Miller <davem@davemloft.net>2010-12-03 10:59:47 -0800
commitca44ac386181ba710a9ab6db900d6c1e5451b366 (patch)
treeab71f5c91ddc162ba4f570cbd5e47049a6c2e94e /drivers/net/tg3.c
parent289700dbc40c78741f17e2304ed4ac0db3c3afd3 (diff)
downloadlinux-ca44ac386181ba710a9ab6db900d6c1e5451b366.tar.bz2
net: don't reallocate skb->head unless the current one hasn't the needed extra size or is shared
skb head being allocated by kmalloc(), it might be larger than what actually requested because of discrete kmem caches sizes. Before reallocating a new skb head, check if the current one has the needed extra size. Do this check only if skb head is not shared. Signed-off-by: Changli Gao <xiaosuo@gmail.com> Cc: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
0 files changed, 0 insertions, 0 deletions