net: switch secpath to use skb extension infrastructure
authorFlorian Westphal <fw@strlen.de>
Tue, 18 Dec 2018 16:15:27 +0000 (17:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2018 19:21:38 +0000 (11:21 -0800)
commit4165079ba328dd47262a2183049d3591f0a750b1
tree6c37280ad8ba6e1d028962bfb2e3ace1f590d3fc
parenta84e3f533324e40e4a99f50dee2188bf140d8098
net: switch secpath to use skb extension infrastructure

Remove skb->sp and allocate secpath storage via extension
infrastructure.  This also reduces sk_buff by 8 bytes on x86_64.

Total size of allyesconfig kernel is reduced slightly, as there is
less inlined code (one conditional atomic op instead of two on
skb_clone).

No differences in throughput in following ipsec performance tests:
- transport mode with aes on 10GB link
- tunnel mode between two network namespaces with aes and null cipher

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/xfrm_device.txt
include/linux/skbuff.h
include/net/xfrm.h
net/core/skbuff.c
net/xfrm/xfrm_input.c