Files
xemu/net
Daniel Borkmann d38c5e0d0c net/af-xdp: Remove XDP program cleanup logic
There are two issues with the XDP program removal in af_xdp_cleanup():

1) Starting from libxdp 1.3.0 [0] the XDP program gets automatically
   detached when we call xsk_socket__delete() for the last successfully
   configured queue. libxdp internally keeps track of that. For QEMU
   we require libxdp >= 1.4.0. Given QEMU is not loading the program,
   lets also not attempt to remove it and delegate this instead.

2) The removal logic is incorrect anyway because we are setting n_queues
   into the last queue that never has xdp_flags on failure, so the logic
   is always skipped since the non-zero test for s->xdp_flags in
   af_xdp_cleanup() fails.

Fixes: cb039ef3d9 ("net: add initial support for AF_XDP network backend")
Suggested-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Ilya Maximets <i.maximets@ovn.org>
Cc: Ilya Maximets <i.maximets@ovn.org>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Anton Protopopov <aspsk@isovalent.com>
Link: https://github.com/xdp-project/xdp-tools/commit/38c2914988fd5c1ef65f2381fc8af9f3e8404e2b [0]
Signed-off-by: Jason Wang <jasowang@redhat.com>
2025-07-15 10:26:08 +08:00
..
2025-04-25 17:00:41 +02:00
2025-07-14 13:27:09 +08:00
2024-04-18 11:17:27 +02:00
2025-04-25 17:00:41 +02:00
2025-07-14 13:27:09 +08:00
2025-07-14 13:27:09 +08:00
2025-07-14 13:27:09 +08:00
2024-06-04 15:14:25 +08:00
2024-10-03 17:26:05 +03:00
2024-06-04 15:14:25 +08:00
2024-06-04 15:14:25 +08:00
2025-03-10 17:07:16 +08:00