-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clean-up bpftool from legacy support #4012
Conversation
Upstream branch: b548b17 |
374ee0d
to
acf8d80
Compare
Upstream branch: f12ed9c |
e121dfc
to
b825875
Compare
acf8d80
to
23d1c50
Compare
Upstream branch: dfd0afb |
b825875
to
02b310a
Compare
23d1c50
to
2d4b4cb
Compare
Upstream branch: e662c77 |
02b310a
to
db2a71f
Compare
2d4b4cb
to
b8b18fc
Compare
Upstream branch: bd56f86 |
db2a71f
to
eff18c0
Compare
b8b18fc
to
63a05f7
Compare
Upstream branch: 6728aea |
eff18c0
to
b594c90
Compare
63a05f7
to
d518379
Compare
Upstream branch: 26a9b43 |
b594c90
to
fa5805e
Compare
d518379
to
28b3d16
Compare
Following: commit bd05410 ("libbpf: enforce strict libbpf 1.0 behaviors") commit 93b8952 ("libbpf: deprecate legacy BPF map definitions") The --legacy option is no longer relevant as libbpf no longer supports it. libbpf_set_strict_mode() is a no-op operation. Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com> Acked-by: Yonghong Song <yhs@fb.com> Reviewed-by: Quentin Monnet <quentin@isovalent.com>
There is no reasons to keep PTR_ERR() when kern_btf=NULL, let's just return 0. This also cleans this part of code from using libbpf_get_error(). Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com> Acked-by: Yonghong Song <yhs@fb.com>
It is expected that errno be passed to strerror(). This also cleans this part of code from using libbpf_get_error(). Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com> Acked-by: Yonghong Song <yhs@fb.com> Reviewed-by: Quentin Monnet <quentin@isovalent.com>
bpftool is now totally compliant with libbpf 1.0 mode and is not expected to be compiled with pre-1.0, let's clean-up the usage of libbpf_get_error(). The changes stay aligned with returned errors always negative. - In tools/bpf/bpftool/btf.c This fixes an unintialized local variable `err` in function do_dump() because it may now be returned without having been set. - This also removes the checks on NULL pointers before calling btf__free() because that function already does the check. Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Upstream branch: 32637e3 |
The function contains a single btf__free() call which can be inlined. Credits to Yonghong Song. Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com> Acked-by: Yonghong Song <yhs@fb.com> Reviewed-by: Quentin Monnet <quentin@isovalent.com>
fa5805e
to
5c7340f
Compare
28b3d16
to
ccb2000
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=694820 expired. Closing PR. |
Pull request for series with
subject: clean-up bpftool from legacy support
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=694820