summaryrefslogtreecommitdiff
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2017-11-28 23:40:28 +0300
committerDavid S. Miller <davem@davemloft.net>2017-11-30 17:54:26 +0300
commit45b018beddb631fb9a0ecbc3ba103521b03c4c80 (patch)
tree1118ed34bbf91dac1e703cab2e94dbdafe205709 /include/net/xfrm.h
parentb92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b (diff)
downloadlinux-45b018beddb631fb9a0ecbc3ba103521b03c4c80.tar.xz
ipsec: Create and use new helpers for dst child access.
This will make a future change moving the dst->child pointer less invasive. Signed-off-by: David S. Miller <davem@davemloft.net> Reviewed-by: Eric Dumazet <edumazet@google.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 4021b49a6ce3..4c08eb0d46ce 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1004,6 +1004,11 @@ static inline struct dst_entry *xfrm_dst_child(const struct dst_entry *dst)
}
#ifdef CONFIG_XFRM
+static inline void xfrm_dst_set_child(struct xfrm_dst *xdst, struct dst_entry *child)
+{
+ xdst->u.dst.child = child;
+}
+
static inline void xfrm_dst_destroy(struct xfrm_dst *xdst)
{
xfrm_pols_put(xdst->pols, xdst->num_pols);