tcp: Add tracepoint for tcp_set_ca_state
authorPing Gan <jacky_gam_2001@163.com>
Wed, 6 Apr 2022 01:09:56 +0000 (09:09 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 03:33:15 +0000 (20:33 -0700)
commit15fcdf6ae116d1e8da4ff76c6fd82514f5ea501b
tree709ac2a8ddf746f2b21324869f87844b9b4e205f
parent794c24e9921f32ded4422833a990ccf11dc3c00e
tcp: Add tracepoint for tcp_set_ca_state

The congestion status of a tcp flow may be updated since there
is congestion between tcp sender and receiver. It makes sense to
add tracepoint for congestion status set function to summate cc
status duration and evaluate the performance of network
and congestion algorithm. the backgound of this patch is below.

Link: https://github.com/iovisor/bcc/pull/3899
Signed-off-by: Ping Gan <jacky_gam_2001@163.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220406010956.19656-1-jacky_gam_2001@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
include/trace/events/tcp.h
net/ipv4/tcp_cong.c