bpf: use libbpf_num_possible_cpus internally

Use the newly added bpf_num_possible_cpus() in bpftool and selftests
and remove duplicate implementations.

Signed-off-by: Hechao Li <hechaol@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
Hechao Li 2019-06-10 17:56:52 -07:00 • committed by Daniel Borkmann
commit 4c587c196d
2 changed files with 10 additions and 80 deletions