inet: remove sk_listener parameter from syn_ack_timeout()
It is not needed, and req->sk_listener points to the listener anyway. request_sock argument can be const. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
2b41fab70f
commit
42cb80a235
@@ -327,7 +327,7 @@ static void tcp_fastopen_synack_timer(struct sock *sk)
|
||||
struct request_sock *req;
|
||||
|
||||
req = tcp_sk(sk)->fastopen_rsk;
|
||||
req->rsk_ops->syn_ack_timeout(sk, req);
|
||||
req->rsk_ops->syn_ack_timeout(req);
|
||||
|
||||
if (req->num_timeout >= max_retries) {
|
||||
tcp_write_err(sk);
|
||||
@@ -539,9 +539,11 @@ static void tcp_write_timer(unsigned long data)
|
||||
sock_put(sk);
|
||||
}
|
||||
|
||||
void tcp_syn_ack_timeout(struct sock *sk, struct request_sock *req)
|
||||
void tcp_syn_ack_timeout(const struct request_sock *req)
|
||||
{
|
||||
NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPTIMEOUTS);
|
||||
struct net *net = read_pnet(&inet_rsk(req)->ireq_net);
|
||||
|
||||
NET_INC_STATS_BH(net, LINUX_MIB_TCPTIMEOUTS);
|
||||
}
|
||||
EXPORT_SYMBOL(tcp_syn_ack_timeout);
|
||||
|
||||
|
Reference in New Issue
Block a user