Skip to content

libbpf: Fix bpf_get_link_xdp_id flags handling

Andrey Ignatov bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libbpf: Fix bpf_get_link_xdp_id flags handlingtools/lib/bpf/netlink.c+1 -11 reply
2/2selftests/bpf: Add test for bpf_get_link_xdp_idtools/testing/selftests/bpf/prog_tests/xdp_info.c+68 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchToke Høiland-Jørgensen
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf 0/2] libbpf: Fix bpf_get_link_xdp_id flags handling

This patch set fixes bpf_get_link_xdp_id() behavior for non-zero flags and adds selftest that verifies the fix and can be used to reproduce the problem.

Andrey Ignatov (2):
libbpf: Fix bpf_get_link_xdp_id flags handling
selftests/bpf: Add test for bpf_get_link_xdp_id

 tools/lib/bpf/netlink.c                       |  2 +-
 .../selftests/bpf/prog_tests/xdp_info.c       | 68 +++++++++++++++++++
 2 files changed, 69 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/xdp_info.c
Signature · 1 line
2.24.1