]> git.baikalelectronics.ru Git - kernel.git/commit
net: pack skb_shared_info more efficiently
authorIan Campbell <Ian.Campbell@citrix.com>
Thu, 5 Jan 2012 07:13:39 +0000 (07:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jan 2012 19:01:21 +0000 (14:01 -0500)
commit064856421c59ce212f19dd55cbef51359dd5759b
tree0f6247b0a7d804fbbace2d12429b7d80c3e7470e
parentf50faada9529a1a525ae374e00891135b4b6080e
net: pack skb_shared_info more efficiently

nr_frags can be 8 bits since 256 is plenty of fragments. This allows it to be
packed with tx_flags.

Also by moving ip6_frag_id and dataref (both 4 bytes) next to each other we can
avoid a hole between ip6_frag_id and frag_list on 64 bit systems.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h