Re: bpf: add BPF_CGROUP_SOCK_OPS callback that is executed on every RTT (commit: 23729ff23186424)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/25, Rao Shoaib wrote:
> Hi Stanislav,
> 
> I have a question about the placement of tcp_bpf_rtt() call in
> tcp_rtt_estimator(). Why is the call made before the assignment
> 
> tp->srtt_us = max(1U, srtt);
> 
> How is the attached eBPF program suppose the get the new value?

Take a look at the way tcp_bpf_rtt is invoked. It gets mrtt_us
and srtt arguments. Those are passed via bpf_sock_ops args field.
See tools/testing/selftests/bpf/progs/tcp_rtt.c. Hope that helps!




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux