bpftool: use new API for attaching XDP program
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 20 Jan 2022 06:14:20 +0000 (22:14 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 21 Jan 2022 05:22:02 +0000 (21:22 -0800)
commitc86575eccab24d583db0169ded342eb215b781c9
treea74865fea02a4eb0706022c5fb782fa3a96af7a8
parentc359821ac65b7cda0e24f75f6ffd465c3f771204
bpftool: use new API for attaching XDP program

Switch to new bpf_xdp_attach() API to avoid deprecation warnings.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220120061422.2710637-3-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/net.c