diff options
author | Florian Westphal <fw@strlen.de> | 2018-12-18 17:15:26 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-19 11:21:38 -0800 |
commit | a84e3f533324e40e4a99f50dee2188bf140d8098 (patch) | |
tree | 87609cfff448eacf1b18ae19f9f841d416abee2c /net/xfrm/Kconfig | |
parent | a053c866496d0c3647727f6a282a1db3afea3ed7 (diff) | |
download | linux-stable-a84e3f533324e40e4a99f50dee2188bf140d8098.tar.gz linux-stable-a84e3f533324e40e4a99f50dee2188bf140d8098.tar.bz2 linux-stable-a84e3f533324e40e4a99f50dee2188bf140d8098.zip |
xfrm: prefer secpath_set over secpath_dup
secpath_set is a wrapper for secpath_dup that will not perform
an allocation if the secpath attached to the skb has a reference count
of one, i.e., it doesn't need to be COW'ed.
Also, secpath_dup doesn't attach the secpath to the skb, it leaves
this to the caller.
Use secpath_set in places that immediately assign the return value to
skb.
This allows to remove skb->sp without touching these spots again.
secpath_dup can eventually be removed in followup patch.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/Kconfig')
-rw-r--r-- | net/xfrm/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig index 140270a13d54..5d43aaa17027 100644 --- a/net/xfrm/Kconfig +++ b/net/xfrm/Kconfig @@ -5,6 +5,7 @@ config XFRM bool depends on NET select GRO_CELLS + select SKB_EXTENSIONS config XFRM_OFFLOAD bool |