-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatic loading of hook in XDP frags mode
If an XDP entrypoint is loaded in XDP frags mode, the xdpcap hook can't be attached in linear buffer mode, and vice versa. This commit adds a check that allows the code to retry loading the actions in XDP frags mode if the first attempt fails. If the second attempt fails too, the program exits and shows the original error message. A new test is included checking that the attachment retry works as expected. Signed-off-by: Pavlos Tzianos <[email protected]>
- Loading branch information
1 parent
2a7e833
commit 660cb54
Showing
3 changed files
with
91 additions
and
11 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
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