commit | c40a565a04afd0429ecc8a1a2c9aff897796118f | [log] [tgz] |
---|---|---|
author | Martin KaFai Lau <kafai@fb.com> | Thu Sep 24 17:04:40 2020 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Fri Sep 25 13:58:02 2020 -0700 |
tree | 4324165f9dca8adaea453e86ce162c8bf0a71050 | |
parent | b18c1f0aa4775bf1ecfbe5942e4e7c6bffdeff6a [diff] |
bpf: selftest: Use network_helpers in the sock_fields test This patch uses start_server() and connect_to_fd() from network_helpers.h to remove the network testing boiler plate codes. epoll is no longer needed also since the timeout has already been taken care of also. Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200925000440.3858639-1-kafai@fb.com