|
@@ -171,7 +171,6 @@ void tcp_fastopen_add_skb(struct sock *sk, struct sk_buff *skb)
|
|
|
|
|
|
static struct sock *tcp_fastopen_create_child(struct sock *sk,
|
|
static struct sock *tcp_fastopen_create_child(struct sock *sk,
|
|
struct sk_buff *skb,
|
|
struct sk_buff *skb,
|
|
- struct dst_entry *dst,
|
|
|
|
struct request_sock *req)
|
|
struct request_sock *req)
|
|
{
|
|
{
|
|
struct tcp_sock *tp;
|
|
struct tcp_sock *tp;
|
|
@@ -278,8 +277,7 @@ static bool tcp_fastopen_queue_check(struct sock *sk)
|
|
*/
|
|
*/
|
|
struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb,
|
|
struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb,
|
|
struct request_sock *req,
|
|
struct request_sock *req,
|
|
- struct tcp_fastopen_cookie *foc,
|
|
|
|
- struct dst_entry *dst)
|
|
|
|
|
|
+ struct tcp_fastopen_cookie *foc)
|
|
{
|
|
{
|
|
struct tcp_fastopen_cookie valid_foc = { .len = -1 };
|
|
struct tcp_fastopen_cookie valid_foc = { .len = -1 };
|
|
bool syn_data = TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq + 1;
|
|
bool syn_data = TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq + 1;
|
|
@@ -312,7 +310,7 @@ struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb,
|
|
* data in SYN_RECV state.
|
|
* data in SYN_RECV state.
|
|
*/
|
|
*/
|
|
fastopen:
|
|
fastopen:
|
|
- child = tcp_fastopen_create_child(sk, skb, dst, req);
|
|
|
|
|
|
+ child = tcp_fastopen_create_child(sk, skb, req);
|
|
if (child) {
|
|
if (child) {
|
|
foc->len = -1;
|
|
foc->len = -1;
|
|
NET_INC_STATS(sock_net(sk),
|
|
NET_INC_STATS(sock_net(sk),
|