Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
mptcp: increment data bytes retransmitted stats
Browse files Browse the repository at this point in the history
Since commit fb31c9b ("tcp: add data bytes retransmitted stats"),
a new counter has to be updated each time some bytes are retransmitted.

Fixes: 0bc9477 ("Merge tag 'v4.19' into mptcp_trunk")
Acked-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
(cherry picked from commit c46b216)
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
(cherry picked from commit 837ac5e)
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
  • Loading branch information
matttbe committed Jul 15, 2022
1 parent 2aff4dc commit 8e6ba37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mptcp/mptcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ static bool mptcp_skb_entail(struct sock *sk, struct sk_buff *skb, int reinject)

MPTCP_ADD_STATS(sock_net(meta_sk), MPTCP_MIB_RETRANSSEGS, segs);
tcp_sk(meta_sk)->total_retrans += segs;
tcp_sk(meta_sk)->bytes_retrans += skb->len;
} else {
TCP_SKB_CB(skb)->mptcp_flags |= (mpcb->snd_hiseq_index ?
MPTCPHDR_SEQ64_INDEX : 0);
Expand Down

0 comments on commit 8e6ba37

Please sign in to comment.