]> git.baikalelectronics.ru Git - kernel.git/commit
net: pskb_expand_head() optimization
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 22 Jul 2010 19:09:08 +0000 (19:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2010 04:05:57 +0000 (21:05 -0700)
commit1abb77833a126d30ef21be6b63b0fad52ba43e9d
treee4d4c83f135f58c32a85454e28e33407711f7718
parent32b820643f38dab4b107a937e4e0808547b20487
net: pskb_expand_head() optimization

Move frags[] at the end of struct skb_shared_info, and make
pskb_expand_head() copy only the used part of it instead of whole array.

This should avoid kmemcheck warnings and speedup pskb_expand_head() as
well, avoiding a lot of cache misses.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c