Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libxdp: Check program name when determining if a program is a dispatcher
When loading a program from an interface, libxdp will try to determine whether that program is a program dispatcher based on the BTF information. However, if the xdp_pass program from the dispatcher object is loaded on the interface, that will carry the BTF information with it, but the map size check will fail. This in turn makes libxdp completely fail to recognise the program. To fix this, add a check for the program name before looking at the BTF information when determining if the program is a dispatcher or not. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
- Loading branch information