]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: use libbpf_num_possible_cpus internally
authorHechao Li <hechaol@fb.com>
Tue, 11 Jun 2019 00:56:52 +0000 (17:56 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 11 Jun 2019 08:36:02 +0000 (10:36 +0200)
commita16eca90356d72471001b64565d47a988132d851
tree2ed8d6d46425887dd31d8c2ff146aee98bd25e55
parentab65e197c0f16083c7c9e4e4555f0280ae6b8ecc
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>
tools/bpf/bpftool/common.c
tools/testing/selftests/bpf/bpf_util.h