Comment 0 for bug 1949889

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Unable to build reuseport_bpf test in ubuntu_kernel_selftests on Bionic with make command

You should be able to build all the tests inside a subtest directory in tools/testing/selftests from a kernel tree with command:
  make TARGETS=net

But with our 4.15 kernel these binary files in the net directory cannot be built correctly:
 * reuseport_bpf
 * reuseport_bpf_cpu
 * reuseport_dualstack
 * reuseaddr_conflict
 * reuseport_bpf_numa

You can only build them with:
  make TARGETS=net run_tests

This will also trigger the test, which is not ideal for the granularity improvement.