tcp: Remove the unused parameter for tcp_try_fastopen.
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Tue, 22 Aug 2017 06:33:49 +0000 (23:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Aug 2017 21:16:12 +0000 (14:16 -0700)
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_fastopen.c
net/ipv4/tcp_input.c

index afdab37814256c2186400ba2a25f7063eb594010..a995004ae946a3f228653766c835cf6b532ef25f 100644 (file)
@@ -1533,8 +1533,7 @@ int tcp_fastopen_reset_cipher(void *key, unsigned int len);
 void tcp_fastopen_add_skb(struct sock *sk, struct sk_buff *skb);
 struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb,
                              struct request_sock *req,
-                             struct tcp_fastopen_cookie *foc,
-                             struct dst_entry *dst);
+                             struct tcp_fastopen_cookie *foc);
 void tcp_fastopen_init_key_once(bool publish);
 bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss,
                             struct tcp_fastopen_cookie *cookie);
index ce9c7fef200f3a493de69e87464e7a1e0ba9d889..e3c33220c41810c87d1d6eebdd5de0b71930aed0 100644 (file)
@@ -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,
                                              struct sk_buff *skb,
-                                             struct dst_entry *dst,
                                              struct request_sock *req)
 {
        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 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 };
        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.
                 */
 fastopen:
-               child = tcp_fastopen_create_child(sk, skb, dst, req);
+               child = tcp_fastopen_create_child(sk, skb, req);
                if (child) {
                        foc->len = -1;
                        NET_INC_STATS(sock_net(sk),
index ab908949ee95b55a124ec101523b9a3edf37381b..d3421ee9a10ab66920bdabd7b2fbbf637ebc7e75 100644 (file)
@@ -6150,7 +6150,7 @@ int tcp_conn_request(struct request_sock_ops *rsk_ops,
        tcp_openreq_init_rwin(req, sk, dst);
        if (!want_cookie) {
                tcp_reqsk_record_syn(sk, req, skb);
-               fastopen_sk = tcp_try_fastopen(sk, skb, req, &foc, dst);
+               fastopen_sk = tcp_try_fastopen(sk, skb, req, &foc);
        }
        if (fastopen_sk) {
                af_ops->send_synack(fastopen_sk, dst, &fl, req,