diff options
| author | Martin KaFai Lau <[email protected]> | 2021-07-01 13:06:25 -0700 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2021-07-23 16:45:17 -0700 |
| commit | eed92afdd14c26b1e319fbe9eaa80e62ffa97a2c (patch) | |
| tree | d8dafb16faa4c368d550a3e0ab5166c0b1cbc8b9 /tools/perf/scripts/python | |
| parent | 3cee6fb8e69ecd79be891c89a94974c48a25a437 (diff) | |
bpf: selftest: Test batching and bpf_(get|set)sockopt in bpf tcp iter
This patch adds tests for the batching and bpf_(get|set)sockopt in
bpf tcp iter.
It first creates:
a) 1 non SO_REUSEPORT listener in lhash2.
b) 256 passive and active fds connected to the listener in (a).
c) 256 SO_REUSEPORT listeners in one of the lhash2 bucket.
The test sets all listeners and connections to bpf_cubic before
running the bpf iter.
The bpf iter then calls setsockopt(TCP_CONGESTION) to switch
each listener and connection from bpf_cubic to bpf_dctcp.
The bpf iter has a random_retry mode such that it can return EAGAIN
to the usespace in the middle of a batch.
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Acked-by: Kuniyuki Iwashima <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions