Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libxdp: Allow falling back to single-program attachment for loaded pr…
…ograms When the libxdp compatibility checks for the dispatcher fails, we can fall back to just attaching a single program. However, the xdp_program__attach_single() function assumes that the program had not been loaded into the kernel yet, which is not always the case. In the fallback case there's not really any reason to not just try anyway, so just skip the program load if we already have an fd and try a regular program attach. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
- Loading branch information