Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libxdp: Fix check in xdp_program__attach_single()
The check added to xdp_program__attach_single() in an earlier patch was wrong: the bpf object survives after loading a program. Instead, check if the fd has already been set and use that as an indicator for whether we should load the program before attaching. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
- Loading branch information