From: David S. Miller Date: Thu, 25 Apr 2024 07:52:12 +0000 (+0100) Subject: Merge branch 'tcp-trace-next' X-Git-Tag: net-accept-more-20240515~4^2~140 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=caf93883f623ebd29989e3c35423f386ea4a41bb;p=linux-block.git Merge branch 'tcp-trace-next' Philo Lu says: ==================== tcp: update TCPCB_EVER_RETRANS after trace_tcp_retransmit_skb() Move TCPCB_EVER_RETRANS updating after the trace_tcp_retransmit_skb() in __tcp_retransmit_skb(), and then we are aware of whether the skb has ever been retransmitted in this tracepoint. This can be used, e.g., to get retransmission efficiency by counting skbs w/ and w/o TCPCB_EVER_RETRANS (through bpf tracing programs). For this purpose, TCPCB_EVER_RETRANS is also needed to be exposed to bpf. Previously, the flags are defined as macros in struct tcp_skb_cb. I moved them out into a new enum, and then they can be accessed with vmlinux.h. 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@linux.alibaba.com/ ==================== Signed-off-by: David S. Miller --- caf93883f623ebd29989e3c35423f386ea4a41bb