|
@@ -1862,6 +1862,7 @@ static inline struct xfrm_offload *xfrm_offload(struct sk_buff *skb)
|
|
|
|
|
|
#ifdef CONFIG_XFRM_OFFLOAD
|
|
#ifdef CONFIG_XFRM_OFFLOAD
|
|
void __net_init xfrm_dev_init(void);
|
|
void __net_init xfrm_dev_init(void);
|
|
|
|
+int validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features);
|
|
int xfrm_dev_state_add(struct net *net, struct xfrm_state *x,
|
|
int xfrm_dev_state_add(struct net *net, struct xfrm_state *x,
|
|
struct xfrm_user_offload *xuo);
|
|
struct xfrm_user_offload *xuo);
|
|
bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x);
|
|
bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x);
|
|
@@ -1890,6 +1891,11 @@ static inline void __net_init xfrm_dev_init(void)
|
|
{
|
|
{
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline int validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, struct xfrm_user_offload *xuo)
|
|
static inline int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, struct xfrm_user_offload *xuo)
|
|
{
|
|
{
|
|
return 0;
|
|
return 0;
|