Skip to content

WIP: Flowstats#744

Draft
FelixMcFelix wants to merge 41 commits intomasterfrom
flowstats
Draft

WIP: Flowstats#744
FelixMcFelix wants to merge 41 commits intomasterfrom
flowstats

Conversation

@FelixMcFelix
Copy link
Copy Markdown
Collaborator

@FelixMcFelix FelixMcFelix commented May 2, 2025

Implements part of RFD 549.

This PR starts by assigning a full set of packet counters to every rule, LFT, and active flow within OPTE. From here, we track parent relationships to assign credit back to counters and to memorise every ID for every rule hit by a packet in each direction.

Base automatically changed from optehdl-cleanup to master May 29, 2025 12:49
This should make it more clear at each stage which types are being used
where. This also reduced struct sizes for each, and in a given `parent`s
list we take no more space than an Arc<dyn> would. It may be worth
applying the same to `children`.
Now we have the primitives for flow and rule stats. Let's go!
@FelixMcFelix FelixMcFelix self-assigned this Jun 18, 2025
FelixMcFelix added a commit that referenced this pull request May 7, 2026
This PR cuts down the TCP state entry expiry times for TCP flow entries
which are either still within the three-way handshake or are actively
being torn down. This does not affect the validity of any LFT entries
which are responsible for actually *procesing* matched packets -- these
exist on their own 60s expiry cadence.

This might have some impact on flow state tracking, but the correct fix
there is to get #744 over the
line.

Should answer for
oxidecomputer/customer-support#1125.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant