Skip to content

Commit

Permalink
[TCP]: Rename tcp_ack_packets_out -> tcp_rearm_rto
Browse files Browse the repository at this point in the history
Only thing that tiny function does is rearming the RTO (if
necessary), name it accordingly.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Oct 10, 2007
1 parent 6ff03ac commit 6728e7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -2424,8 +2424,7 @@ static void tcp_cong_avoid(struct sock *sk, u32 ack,
/* Restart timer after forward progress on connection.
* RFC2988 recommends to restart timer to now+rto.
*/

static void tcp_ack_packets_out(struct sock *sk)
static void tcp_rearm_rto(struct sock *sk)
{
struct tcp_sock *tp = tcp_sk(sk);

Expand Down Expand Up @@ -2581,7 +2580,7 @@ static int tcp_clean_rtx_queue(struct sock *sk, __s32 *seq_rtt_p)
= inet_csk(sk)->icsk_ca_ops;

tcp_ack_update_rtt(sk, acked, seq_rtt);
tcp_ack_packets_out(sk);
tcp_rearm_rto(sk);

if (tcp_is_reno(tp))
tcp_remove_reno_sacks(sk, pkts_acked);
Expand Down

0 comments on commit 6728e7d

Please sign in to comment.