Merge tag 'mm-hotfixes-stable-2023-05-03-16-27' of git://git.kernel.org/pub/scm/linux...
[linux-block.git] / include / net / ipcomp.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef _NET_IPCOMP_H
3#define _NET_IPCOMP_H
4
949d6b40 5#include <linux/skbuff.h>
9409f38a
HX
6#include <linux/types.h>
7
1da177e4
LT
8#define IPCOMP_SCRATCH_SIZE 65400
9
87bdc48d 10struct crypto_comp;
949d6b40 11struct ip_comp_hdr;
87bdc48d 12
1da177e4
LT
13struct ipcomp_data {
14 u16 threshold;
7d720c3e 15 struct crypto_comp * __percpu *tfms;
1da177e4
LT
16};
17
87bdc48d
HX
18struct ip_comp_hdr;
19struct sk_buff;
6fccab67
HX
20struct xfrm_state;
21
22int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
23int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
24void ipcomp_destroy(struct xfrm_state *x);
6ee55320 25int ipcomp_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack);
87bdc48d
HX
26
27static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
28{
29 return (struct ip_comp_hdr *)skb_transport_header(skb);
30}
31
1da177e4 32#endif