-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BPF] Automatically adjust to actual max-entries when dumping conntra… #9704
Conversation
/sem-approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some nits/tweaks, thanks
Thanks a lot for taking time to review! |
Done ~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
/sem-approve |
Oops ;( We've added a |
/sem-approve |
There seems to be some issue with creating --ver=2 map, it breaks one test, see https://tigera.semaphoreci.com/jobs/9660d5a8-3f05-44a8-842c-1363d5fba628/artifacts/test-7.log You can run the test locally from calico/felix directory by invoking
|
Sorry for the late response, I was tied up with work ;(
Ah, I see~ The mistake I made was thinking that the logic for creating a new conntrack map required adding a new step to adjust the size. But, this change broke one of the tests. So, to fix this, let's revert to the original behavior.
It has now passed locally with the new commit ;) Thanks again for your help! |
/sem-approve |
Is seems like just a flake with a 404 status code occurred. Would you please re-run the CI? |
…ck map Let's automatically adjust the default value to match the actual max_entries value retrieved from the conntrack map when dumping its entries. Suggested-by: Tomas Hruby <tomas@tigera.io> Signed-off-by: Mingzhe Yang <mingzhe.yang@ly.com> Signed-off-by: Lance Yang <ioworker0@gmail.com>
/sem-approve |
Description
Previously, the conntrack map size would not dynamically adjust to the default value when dumping the conntrack map, even if the global Felix configuration was modified or the BPFMapSizeConntrackPerCPU feature (which is supposed to scale the map size based on the number of CPU cores) was enabled.
So, let's do some things to address this issue ~
Related issues/PRs
fixes #9651
Todos
Release Note
Reminder for the reviewer
Make sure that this PR has the correct labels and milestone set.
Every PR needs one
docs-*
label.docs-pr-required
: This change requires a change to the documentation that has not been completed yet.docs-completed
: This change has all necessary documentation completed.docs-not-required
: This change has no user-facing impact and requires no docs.Every PR needs one
release-note-*
label.release-note-required
: This PR has user-facing changes. Most PRs should have this label.release-note-not-required
: This PR has no user-facing changes.Other optional labels:
cherry-pick-candidate
: This PR should be cherry-picked to an earlier release. For bug fixes only.needs-operator-pr
: This PR is related to install and requires a corresponding change to the operator.