mbox series

[bpf,0/2] libbpf: Fix bpf_get_link_xdp_id flags handling

Message ID cover.1586236080.git.rdna@fb.com
Headers show
Series libbpf: Fix bpf_get_link_xdp_id flags handling | expand

Message

Andrey Ignatov April 7, 2020, 5:09 a.m. UTC
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

Comments

Daniel Borkmann April 7, 2020, 11:44 p.m. UTC | #1
On 4/7/20 7:09 AM, Andrey Ignatov wrote:
> 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

LGTM, applied, thanks!