aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 11c890ad8ebb..f2c5ba28a428 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -882,6 +882,7 @@ struct xfrm_dst
882 u32 path_cookie; 882 u32 path_cookie;
883}; 883};
884 884
885#ifdef CONFIG_XFRM
885static inline void xfrm_dst_destroy(struct xfrm_dst *xdst) 886static inline void xfrm_dst_destroy(struct xfrm_dst *xdst)
886{ 887{
887 dst_release(xdst->route); 888 dst_release(xdst->route);
@@ -894,6 +895,7 @@ static inline void xfrm_dst_destroy(struct xfrm_dst *xdst)
894 xdst->partner = NULL; 895 xdst->partner = NULL;
895#endif 896#endif
896} 897}
898#endif
897 899
898extern void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev); 900extern void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev);
899 901
@@ -1536,9 +1538,11 @@ static inline void xfrm_states_delete(struct xfrm_state **states, int n)
1536} 1538}
1537#endif 1539#endif
1538 1540
1541#ifdef CONFIG_XFRM
1539static inline struct xfrm_state *xfrm_input_state(struct sk_buff *skb) 1542static inline struct xfrm_state *xfrm_input_state(struct sk_buff *skb)
1540{ 1543{
1541 return skb->sp->xvec[skb->sp->len - 1]; 1544 return skb->sp->xvec[skb->sp->len - 1];
1542} 1545}
1546#endif
1543 1547
1544#endif /* _NET_XFRM_H */ 1548#endif /* _NET_XFRM_H */