diff options
author | David Miller <davem@davemloft.net> | 2017-11-28 23:40:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-30 17:54:26 +0300 |
commit | 45b018beddb631fb9a0ecbc3ba103521b03c4c80 (patch) | |
tree | 1118ed34bbf91dac1e703cab2e94dbdafe205709 /include/net/xfrm.h | |
parent | b92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b (diff) | |
download | linux-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.h | 5 |
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); |