-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit b4a70de ("Keyless maps default to BPF_MAP_TYPE_ARRAY for some types (#3300)") specialized scalar maps to use array maps under the hood. The idea was to avoid a hash lookup when there's only a single key. Unfortunately, this regressed clear() on scalar maps, as entries cannot be deleted from an array map. The result was that userspace would print 0 as the value of a scalar map even if it was clear()ed. Revert to fix the regression. The performance win is not worth the additional confusion. Note this is only a semantic revert and not a raw git-revert. The generalization done in the original commit is still useful and IMO makes the code cleaner.
- Loading branch information
Showing
128 changed files
with
6,770 additions
and
6,370 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
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
Oops, something went wrong.