]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95aa412c7c585e6ab9e74ba1564a55dc2e57a3b3
treea74865fea02a4eb0706022c5fb782fa3a96af7a8
parentbafb63077707d7668d5df2a36eff11eef066dd5a
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