diff options
author | Simon Horman <horms@verge.net.au> | 2013-05-23 21:02:51 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-27 22:50:59 -0700 |
commit | 1a37e412a0225fcba5587f24c0dfc7636efc8b69 (patch) | |
tree | 34abfd79e6e06b0be580ebacfa497330e4dc1634 /net/ipv6/udp_offload.c | |
parent | 50ab731e967d65549b11b808f129329dd614e8d9 (diff) | |
download | linux-1a37e412a0225fcba5587f24c0dfc7636efc8b69.tar.gz linux-1a37e412a0225fcba5587f24c0dfc7636efc8b69.tar.bz2 linux-1a37e412a0225fcba5587f24c0dfc7636efc8b69.zip |
net: Use 16bits for *_headers fields of struct skbuff
In order to mitigate ongoing incresase in the size of struct skbuff
use 16 bit integer offsets rather than pointers for inner_*_headers.
This appears to reduce the size of struct skbuff from 0xd0 to 0xc0
bytes on x86_64 with the following all unset.
CONFIG_XFRM
CONFIG_NF_CONNTRACK
CONFIG_NF_CONNTRACK_MODULE
NET_SKBUFF_NF_DEFRAG_NEEDED
CONFIG_BRIDGE_NETFILTER
CONFIG_NET_SCHED
CONFIG_IPV6_NDISC_NODETYPE
CONFIG_NET_DMA
CONFIG_NETWORK_SECMARK
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp_offload.c')
0 files changed, 0 insertions, 0 deletions