ext2: fix missing percpu_counter_inc
[linux/fpc-iii.git] / include / net / ipcomp.h
blobfee6fc451597929a8294896446437de3627f1655
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NET_IPCOMP_H
3 #define _NET_IPCOMP_H
5 #include <linux/types.h>
7 #define IPCOMP_SCRATCH_SIZE 65400
9 struct crypto_comp;
11 struct ipcomp_data {
12 u16 threshold;
13 struct crypto_comp * __percpu *tfms;
16 struct ip_comp_hdr;
17 struct sk_buff;
18 struct xfrm_state;
20 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
21 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
22 void ipcomp_destroy(struct xfrm_state *x);
23 int ipcomp_init_state(struct xfrm_state *x);
25 static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
27 return (struct ip_comp_hdr *)skb_transport_header(skb);
30 #endif