Repository navigation
Merged
Conversation
…ux: get, overlaps and concatenated ranges
This was referenced Nov 12, 2026
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #542.
This PR changes the sets of nf_tables with
NFT_SET_INTERVALso that they work as nft_set_rbtree.c and nft_set_pipapo.c of Linux. It is for the "sets and maps" group of tools/nftables/report.md.NFT_MSG_GETSETELEMin a set with ranges gives the range that has the key.EEXIST, asnft_rbtree_insertandnft_pipapo_insert. A set with a key of more than one field looks at the first element in the order of the inserts that has the first key, aspipapo_get. Thus a range that a set already has can be added again when a later range also has its first key.nft_rbtree_cmp. Before this change, a range that started where the range before it ended did not match.nft_pipapo_walk.Tests
The tests/shell dirs that the change touches: sets and maps, 124 tests. The kernel of these runs had this PR and the next one (nft-28: numgen, hash and meta keys). nft-28 does not change the sets.
byteorderwith a size of 2 and a length of 1, and nft_byteorder.c of Linux master givesEOPNOTSUPPfor it.cargo xtask boot-test inetpasses.RK_AARCH64_TESTS=inet cargo xtask boot-test aarch64passes: inet, inet with virtio-pci, and inet with virtio-pci behind a bridge. The load average of server2 was 25.68, 27.38, 28.93 at the start and 18.43, 21.37, 25.94 at the end.The full gate did not run.