diff options
author | Florian Westphal <fw@strlen.de> | 2019-03-29 21:16:23 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2019-04-08 09:14:12 +0200 |
commit | b45714b164cac71f503ad73654b3c880cb9f2590 (patch) | |
tree | 897135e342a250db8c8b978d132b6778a98d917a /net/ipv6 | |
parent | b262a69582a4676c7378a73077b7bb186c7c5b2a (diff) | |
download | blackbird-op-linux-b45714b164cac71f503ad73654b3c880cb9f2590.tar.gz blackbird-op-linux-b45714b164cac71f503ad73654b3c880cb9f2590.zip |
xfrm: prefer family stored in xfrm_mode struct
Now that we have the family available directly in the
xfrm_mode struct, we can use that and avoid one extra dereference.
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ip6_vti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c index 8b6eefff2f7e..369803c581b7 100644 --- a/net/ipv6/ip6_vti.c +++ b/net/ipv6/ip6_vti.c @@ -372,7 +372,7 @@ static int vti6_rcv_cb(struct sk_buff *skb, int err) } } - family = inner_mode->afinfo->family; + family = inner_mode->family; skb->mark = be32_to_cpu(t->parms.i_key); ret = xfrm_policy_check(NULL, XFRM_POLICY_IN, skb, family); |