-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
flow: Add cfg for optional flow reuse during low memory #10232
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -286,6 +286,7 @@ typedef struct FlowCnf_ | |
uint32_t hash_rand; | ||
uint32_t hash_size; | ||
uint32_t prealloc; | ||
int force_reuse; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. bool There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also, please add a line to document the field |
||
|
||
uint32_t timeout_new; | ||
uint32_t timeout_est; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1424,6 +1424,7 @@ flow: | |
emergency-recovery: 30 | ||
#managers: 1 # default to one flow manager | ||
#recyclers: 1 # default to one flow recycler thread | ||
force-reuse: 1 # Default to forcing flow reuse in low memory conditions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can enable it by default in the code, and leave it commented out here additionally, it should use |
||
|
||
# This option controls the use of VLAN ids in the flow (and defrag) | ||
# hashing. Normally this should be enabled, but in some (broken) | ||
|
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.
how should this behave in IPS mode? We don't call
NoFlowHandleIPS()
hereThere 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.
I think we could also enforce this option at the start of
FlowGetUsedFlow