diff options
| author | Martin KaFai Lau <[email protected]> | 2020-01-22 23:36:58 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-01-23 00:30:10 +0000 |
| commit | 6de4a9c430b57c6ebbccd2a1725f42e9be75f592 (patch) | |
| tree | 0632f77c714898a1ae96619361d986f706979535 /net/ipv4/tcp_output.c | |
| parent | bpf: Sync uapi bpf.h to tools/ (diff) | |
| download | kernel-6de4a9c430b57c6ebbccd2a1725f42e9be75f592.tar.gz kernel-6de4a9c430b57c6ebbccd2a1725f42e9be75f592.zip | |
bpf: tcp: Add bpf_cubic example
This patch adds a bpf_cubic example. Some highlights:
1. CONFIG_HZ .kconfig map is used.
2. In bictcp_update(), calculation is changed to use usec
resolution (i.e. USEC_PER_JIFFY) instead of using jiffies.
Thus, usecs_to_jiffies() is not used in the bpf_cubic.c.
3. In bitctcp_update() [under tcp_friendliness], the original
"while (ca->ack_cnt > delta)" loop is changed to the equivalent
"ca->ack_cnt / delta" operation.
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
