On Sun, Apr 21, 2024 at 6:20 AM Philo Lu <lulie@xxxxxxxxxxxxxxxxx> wrote: > > Marking TCP_SKB_CB(skb)->sacked with TCPCB_EVER_RETRANS after the > traceopint (trace_tcp_retransmit_skb), then we can get the > retransmission efficiency by counting skbs w/ and w/o TCPCB_EVER_RETRANS > mark in this tracepoint. > > We have discussed to achieve this with BPF_SOCK_OPS in [0], and using > tracepoint is thought to be a better solution. > > [0] > https://lore.kernel.org/all/20240417124622.35333-1-lulie@xxxxxxxxxxxxxxxxx/ > > Signed-off-by: Philo Lu <lulie@xxxxxxxxxxxxxxxxx> Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>