diff options
| author | Geliang Tang <[email protected]> | 2024-04-18 16:09:12 +0800 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2024-04-19 17:13:29 -0700 |
| commit | 63a51820d29bdfcf52abed2db2d32b4f6843988e (patch) | |
| tree | 88100b5ba9343cdf4f30d3b7f2ce7bfe27a71569 /tools/perf/scripts/python/Perf-Trace-Util/lib | |
| parent | 805b4d90c0df79a88907623b2528954a0125313d (diff) | |
selftests/bpf: Use connect_to_addr in sk_assign
This patch uses public helper connect_to_addr() exported in
network_helpers.h instead of the local defined function connect_to_server()
in prog_tests/sk_assign.c. This can avoid duplicate code.
The code that sets SO_SNDTIMEO timeout as timeo_sec (3s) can be dropped,
since connect_to_addr() sets default timeout as 3s.
Signed-off-by: Geliang Tang <[email protected]>
Link: https://lore.kernel.org/r/98fdd384872bda10b2adb052e900a2212c9047b9.1713427236.git.tanggeliang@kylinos.cn
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions