-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
link: support querying bpf_mprog based links
bpf_mprog based attachment allows specifying an expected revision when creating a link. The idea is that user space can first query the list of attached programs and the current revision. It then decides where to insert in the list and passes the current revision as the expected revision to the kernel. Return the current revision from QueryPrograms, and at the same time take the Target as an int instead of a path. This matches what we do for attachment and detachment. Breaking change: QueryPrograms now returns a QueryResult. Users can simply access QueryResult.Programs to retrieve the same information as before. Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
- Loading branch information
Showing
3 changed files
with
157 additions
and
51 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