aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r--net/ipv4/tcp_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 4e985dea1dd2..2f1588bf73da 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -2202,9 +2202,10 @@ static bool tcp_small_queue_check(struct sock *sk, const struct sk_buff *skb,
2202static void tcp_chrono_set(struct tcp_sock *tp, const enum tcp_chrono new) 2202static void tcp_chrono_set(struct tcp_sock *tp, const enum tcp_chrono new)
2203{ 2203{
2204 const u32 now = tcp_jiffies32; 2204 const u32 now = tcp_jiffies32;
2205 enum tcp_chrono old = tp->chrono_type;
2205 2206
2206 if (tp->chrono_type > TCP_CHRONO_UNSPEC) 2207 if (old > TCP_CHRONO_UNSPEC)
2207 tp->chrono_stat[tp->chrono_type - 1] += now - tp->chrono_start; 2208 tp->chrono_stat[old - 1] += now - tp->chrono_start;
2208 tp->chrono_start = now; 2209 tp->chrono_start = now;
2209 tp->chrono_type = new; 2210 tp->chrono_type = new;
2210} 2211}