]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: fix napi_reuse_skb() skb reserve
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 21 Mar 2012 06:58:03 +0000 (06:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:27:21 +0000 (09:27 -0700)
commit99b8230daca979e0c0b988cfb80566791354a077
tree911e8d3e6b58a07c6461d99504951f7be2aa1c25
parente033155d0b495becfdc28f46ad20089dc8a13060
net: fix napi_reuse_skb() skb reserve

[ Upstream commit 2a2a459eeeff48640dc557548ce576d666ab06ed ]

napi->skb is allocated in napi_get_frags() using
netdev_alloc_skb_ip_align(), with a reserve of NET_SKB_PAD +
NET_IP_ALIGN bytes.

However, when such skb is recycled in napi_reuse_skb(), it ends with a
reserve of NET_IP_ALIGN which is suboptimal.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/dev.c