Repository navigation
net: add a flowtable fast-path page - #885
Merged
Merged
Conversation
Explain how established forwarded flows are added to a flowtable, how the fast path handles a hit, how flows time out or are torn down, and hardware offload. Notes where the in-tree documentation no longer matches the source.
Link each behaviour claim to the function or line at v7.4-rc3, each doc claim to nf_flowtable.rst, and each history claim to its commit. Make IPsec handling per direction, mark the v7.2 device-list change, and move the GRE timeout history into its own note.
Correct the stable-tag count, the postrouting and NFT_BREAK statements, closing-flow and neighbour behaviour, and the v7.2 device-list scope. Cite the remaining claims and pin all links to v7.4-rc3.
Cover the encapsulated-packet hooks, cite the one-direction IPsec claim, show the flowtable counter and offload options, fix the direct-mode and device-registration statements, and attribute the GRE timeout history.
Add a lifecycle diagram, state which drop rules and devices the statements cover, record the notifier and hook-allocation behaviour, and split the dense hand-back and GRE history paragraphs.
… page Fix the drop-rule and tag statements, qualify hardware removal timing and device-down matching, correct the GRE initializer wording, cite IPv6 equivalents and add the XDP lookup build condition.
State IPsec, route caching and postrouting per direction, correct the hook-registration and XDP commit attributions, note that a flow with an IPsec direction is not added in hardware, and fix the lifecycle diagram.
Scope the route check to the packet's direction, correct the hardware removal timing on device down, split the rule-change bullets, and cite the local-out hooks and the tag bits.
Scope the NF_STOLEN, tag and conntrack-refresh statements, drop an uncited stale-route sentence, split the dense timeout bullet and reuse one reference id.
State that a failed rename is rolled back, scope the conntrack refresh to packets treated as valid, fix a dangling reference after the bullet split, and extend the tag citation range.
Say that the TCP tracker normally sets a timeout and that packets returning earlier set none, and anchor the notifier citation at its first line.
Say that the TCP tracker can set the timeout again when conntrack processes another packet, and keep the fixed-timeout exception.
Say the TCP tracker can set the timeout again, for example at the refresh, and scope the fixed-timeout exception to that refresh.
1 of 8 tasks
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.
Adds
net/flowtable.md, linked from the net README and the nav.Flowtable is the fast path that lets forwarded flows already in a flow table skip most of the netfilter hook path. Searching
docs/for it found nothing. Every behaviour claim links to the function or line at Linux v7.4-rc3, every statement aboutnf_flowtable.rstlinks to the line it paraphrases, and every history claim links to its commit or to the 2017 netfilter-devel cover letters. Behaviour that changed recently is marked with the release that introduced it. The page covers:counterflag, priority, the device list and the v7.2 change, missing devices, thecounterandflags offloadoptions, and the Kconfig symbols;TC_SETUP_FTandTC_SETUP_CLSFLOWERdriver interface, in-tree users, what fails when a device can't offload, and the XDP lookup;ip6gre;Documentation/networking/nf_flowtable.rstno longer matches the source, each with the commit that changed it.mkdocs build --strictpasses.Closes #884
Part of #881