aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 243d674b3ef5..c9ab964189a0 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -3286,7 +3286,9 @@ static void tcp_snd_una_update(struct tcp_sock *tp, u32 ack)
3286{ 3286{
3287 u32 delta = ack - tp->snd_una; 3287 u32 delta = ack - tp->snd_una;
3288 3288
3289 u64_stats_update_begin(&tp->syncp);
3289 tp->bytes_acked += delta; 3290 tp->bytes_acked += delta;
3291 u64_stats_update_end(&tp->syncp);
3290 tp->snd_una = ack; 3292 tp->snd_una = ack;
3291} 3293}
3292 3294
@@ -3295,7 +3297,9 @@ static void tcp_rcv_nxt_update(struct tcp_sock *tp, u32 seq)
3295{ 3297{
3296 u32 delta = seq - tp->rcv_nxt; 3298 u32 delta = seq - tp->rcv_nxt;
3297 3299
3300 u64_stats_update_begin(&tp->syncp);
3298 tp->bytes_received += delta; 3301 tp->bytes_received += delta;
3302 u64_stats_update_end(&tp->syncp);
3299 tp->rcv_nxt = seq; 3303 tp->rcv_nxt = seq;
3300} 3304}
3301 3305