forked from xdp-project/xdp-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loader: Fix --force mode for cross-native/generic loading
Just unsetting the XDP_FLAGS_UPDATE_IF_NOEXIST is not enough to force-load a new XDP program, if the program already loaded is a different type (i.e, loading a generic XDP program won't unload a native mode program). Handle this, by reacting to the EEXIST error code when --force is set, by unloading the opposite program type. Fixes xdp-project#26. Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters