Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change flows_per_sec to flows in tc module #8237

Closed
wants to merge 2 commits into from

Conversation

mmynk
Copy link
Contributor

@mmynk mmynk commented Jul 15, 2024

flows is a static value. As mentioned in man page:

flows
is the number of flows into which the incoming packets are
classified. Due to the stochastic nature of hashing, multiple
flows may end up being hashed into the same slot. Newer flows
have priority over older ones. This parameter can be set only at
load time since memory has to be allocated for the hash table.
Default value is 1024.

Thus, converting this to a rate will always give zero. Change flows_per_sec to flows which is basically the last collected value.

mmynk added 2 commits July 15, 2024 19:48
`flows` is a static value. Thus, converting this to a rate will always give zero.
Change `flows_per_sec` to `flows` which is basically the last collected value.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 15, 2024
@facebook-github-bot
Copy link
Contributor

@brianc118 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@brianc118 merged this pull request in b0e79f4.

@mmynk mmynk deleted the fix/tc-flows branch July 15, 2024 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants