On 2024/4/23 07:09, Stanislav Fomichev wrote:
On 04/21, Philo Lu wrote:
Two important arguments in RTT estimation, mrtt and srtt, are passed to
tcp_bpf_rtt(), so that bpf programs get more information about RTT
computation in BPF_SOCK_OPS_RTT_CB.
The difference between bpf_sock_ops->srtt_us and the srtt here is: the
former is an old rtt before update, while srtt passed by tcp_bpf_rtt()
is that after update.
Can you also extend the rtt selftest to exercise there new numbers?
Something simple like making sure they are non-zero should be enough.
Of course. I will add it in next version.
Thansk.