Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / net / ipcomp.h
blob8660a2a6d1fc76a7df7e90db95908cedb47b55e3
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NET_IPCOMP_H
3 #define _NET_IPCOMP_H
5 #include <linux/skbuff.h>
6 #include <linux/types.h>
8 #define IPCOMP_SCRATCH_SIZE 65400
10 struct crypto_comp;
11 struct ip_comp_hdr;
13 struct ipcomp_data {
14 u16 threshold;
15 struct crypto_comp * __percpu *tfms;
18 struct ip_comp_hdr;
19 struct sk_buff;
20 struct xfrm_state;
22 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
23 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
24 void ipcomp_destroy(struct xfrm_state *x);
25 int ipcomp_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack);
27 static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
29 return (struct ip_comp_hdr *)skb_transport_header(skb);
32 #endif