net: Create and use new helper xfrm_dst_child().
authorDavid Miller <davem@davemloft.net>
Tue, 28 Nov 2017 20:40:22 +0000 (15:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Nov 2017 14:54:25 +0000 (09:54 -0500)
commitb92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b
treef8fb92d4c9394bdf61716d074b9aaa15fbf22450
parent071fb37ec43dcd88937a669c5f97bd37f7d29dea
net: Create and use new helper xfrm_dst_child().

Only IPSEC routes have a non-NULL dst->child pointer.  And IPSEC
routes are identified by a non-NULL dst->xfrm pointer.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/core/dst.c
net/ipv4/xfrm4_mode_tunnel.c
net/ipv6/xfrm6_mode_tunnel.c
net/ipv6/xfrm6_policy.c
net/xfrm/xfrm_output.c
net/xfrm/xfrm_policy.c
security/selinux/xfrm.c