Repository navigation
Conversation
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 adds the stateful expressions of the sets of nf_tables, as
nft_set_elem_expr_allocof Linux.NFTA_SET_EXPRandNFTA_SET_EXPRESSIONS. An element takesNFTA_SET_ELEM_EXPRandNFTA_SET_ELEM_EXPRESSIONS.dynsettakesNFTA_DYNSET_EXPRandNFTA_DYNSET_EXPRESSIONS.counter,quota,limitandconnlimit, two at most.lookupand adynsetrun the expressions of the element that they find.connlimitexpression of nft_connlimit.c counts the connections that connection tracking still has.Tests
The tests/shell dirs that the change touches: sets, maps, optimizations, nft-f, json and transactions. 222 tests.
The kernel of the tests/shell runs had this PR and the next one (nft-27: interval get, overlaps and concatenated ranges). A fault in my build script did not rebuild the kernel of this PR alone. The boot tests and the gate use this PR alone.
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 9.00, 9.92, 11.39 at the start and 12.23, 11.54, 11.05 at the end.The tests ran on the commit before the rebase onto 77bcfd9. The rebase changed only CHANGELOG.md.
The full gate did not run.