bpf: implement BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap
[sfrench/cifs-2.6.git] / include / net / lwtunnel.h
index 33fd9ba7e0e5a29d5dd1705112a9213f08531612..671113bcb2cc20e2b4ff56f4160a9241cebce477 100644 (file)
@@ -126,6 +126,8 @@ int lwtunnel_cmp_encap(struct lwtunnel_state *a, struct lwtunnel_state *b);
 int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb);
 int lwtunnel_input(struct sk_buff *skb);
 int lwtunnel_xmit(struct sk_buff *skb);
+int bpf_lwt_push_ip_encap(struct sk_buff *skb, void *hdr, u32 len,
+                         bool ingress);
 
 static inline void lwtunnel_set_redirect(struct dst_entry *dst)
 {