-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixups in response to alessandrod review
Move BpfError::UnsupportedMap into MapError and add a map_type field to the error. Update the `allow_unsupported_maps` function comment. Update the logic to check if any unsupported maps are being used. More specifically only search a program's maps if `allow_unsupported_maps` is set and then use the iter function `try_for_each` with a match statement which allows us to return the inner map type if it's unsupported. Signed-off-by: Andrew Stoycos <astoycos@redhat.com>
- Loading branch information
Showing
2 changed files
with
21 additions
and
18 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