diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 573c9e9b0d72..9d36cc88d043 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -43,6 +43,7 @@ | |||
43 | #include <linux/seq_file.h> | 43 | #include <linux/seq_file.h> |
44 | #include <linux/memcontrol.h> | 44 | #include <linux/memcontrol.h> |
45 | #include <linux/bpf-cgroup.h> | 45 | #include <linux/bpf-cgroup.h> |
46 | #include <linux/siphash.h> | ||
46 | 47 | ||
47 | extern struct inet_hashinfo tcp_hashinfo; | 48 | extern struct inet_hashinfo tcp_hashinfo; |
48 | 49 | ||
@@ -1612,8 +1613,7 @@ void tcp_free_fastopen_req(struct tcp_sock *tp); | |||
1612 | void tcp_fastopen_destroy_cipher(struct sock *sk); | 1613 | void tcp_fastopen_destroy_cipher(struct sock *sk); |
1613 | void tcp_fastopen_ctx_destroy(struct net *net); | 1614 | void tcp_fastopen_ctx_destroy(struct net *net); |
1614 | int tcp_fastopen_reset_cipher(struct net *net, struct sock *sk, | 1615 | int tcp_fastopen_reset_cipher(struct net *net, struct sock *sk, |
1615 | void *primary_key, void *backup_key, | 1616 | void *primary_key, void *backup_key); |
1616 | unsigned int len); | ||
1617 | void tcp_fastopen_add_skb(struct sock *sk, struct sk_buff *skb); | 1617 | void tcp_fastopen_add_skb(struct sock *sk, struct sk_buff *skb); |
1618 | struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb, | 1618 | struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb, |
1619 | struct request_sock *req, | 1619 | struct request_sock *req, |
@@ -1623,14 +1623,14 @@ void tcp_fastopen_init_key_once(struct net *net); | |||
1623 | bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss, | 1623 | bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss, |
1624 | struct tcp_fastopen_cookie *cookie); | 1624 | struct tcp_fastopen_cookie *cookie); |
1625 | bool tcp_fastopen_defer_connect(struct sock *sk, int *err); | 1625 | bool tcp_fastopen_defer_connect(struct sock *sk, int *err); |
1626 | #define TCP_FASTOPEN_KEY_LENGTH 16 | 1626 | #define TCP_FASTOPEN_KEY_LENGTH sizeof(siphash_key_t) |
1627 | #define TCP_FASTOPEN_KEY_MAX 2 | 1627 | #define TCP_FASTOPEN_KEY_MAX 2 |
1628 | #define TCP_FASTOPEN_KEY_BUF_LENGTH \ | 1628 | #define TCP_FASTOPEN_KEY_BUF_LENGTH \ |
1629 | (TCP_FASTOPEN_KEY_LENGTH * TCP_FASTOPEN_KEY_MAX) | 1629 | (TCP_FASTOPEN_KEY_LENGTH * TCP_FASTOPEN_KEY_MAX) |
1630 | 1630 | ||
1631 | /* Fastopen key context */ | 1631 | /* Fastopen key context */ |
1632 | struct tcp_fastopen_context { | 1632 | struct tcp_fastopen_context { |
1633 | __u8 key[TCP_FASTOPEN_KEY_MAX][TCP_FASTOPEN_KEY_LENGTH]; | 1633 | siphash_key_t key[TCP_FASTOPEN_KEY_MAX]; |
1634 | int num; | 1634 | int num; |
1635 | struct rcu_head rcu; | 1635 | struct rcu_head rcu; |
1636 | }; | 1636 | }; |