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.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 7e7e2b0d2915..62f5a259e597 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1850,8 +1850,9 @@ static inline struct xfrm_offload *xfrm_offload(struct sk_buff *skb)
1850} 1850}
1851#endif 1851#endif
1852 1852
1853#ifdef CONFIG_XFRM_OFFLOAD
1854void __net_init xfrm_dev_init(void); 1853void __net_init xfrm_dev_init(void);
1854
1855#ifdef CONFIG_XFRM_OFFLOAD
1855int validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features); 1856int validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features);
1856int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, 1857int xfrm_dev_state_add(struct net *net, struct xfrm_state *x,
1857 struct xfrm_user_offload *xuo); 1858 struct xfrm_user_offload *xuo);
@@ -1877,10 +1878,6 @@ static inline void xfrm_dev_state_free(struct xfrm_state *x)
1877 } 1878 }
1878} 1879}
1879#else 1880#else
1880static inline void __net_init xfrm_dev_init(void)
1881{
1882}
1883
1884static inline int validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features) 1881static inline int validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features)
1885{ 1882{
1886 return 0; 1883 return 0;