Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags   |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef _NET_IPCOMP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define _NET_IPCOMP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #define IPCOMP_SCRATCH_SIZE     65400
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) struct crypto_comp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct ipcomp_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	u16 threshold;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	struct crypto_comp * __percpu *tfms;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) struct ip_comp_hdr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct sk_buff;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) struct xfrm_state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) void ipcomp_destroy(struct xfrm_state *x);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) int ipcomp_init_state(struct xfrm_state *x);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	return (struct ip_comp_hdr *)skb_transport_header(skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #endif