-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add bpfIPFragTimeout configuration option #11726
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: tomastigera <49207409+tomastigera@users.noreply.github.com>
Co-authored-by: tomastigera <49207409+tomastigera@users.noreply.github.com>
Co-authored-by: tomastigera <49207409+tomastigera@users.noreply.github.com>
Co-authored-by: tomastigera <49207409+tomastigera@users.noreply.github.com>
| // [Default: Auto - read from net.ipv4.ipfrag_time] | ||
| // +kubebuilder:validation:Type=string | ||
| // +kubebuilder:validation:Pattern=`^([0-9]+(\\.[0-9]+)?(ms|s|m|h)|Auto)*$` | ||
| BPFIPFragTimeout *metav1.Duration `json:"bpfIPFragTimeout,omitempty" configv1timescale:"seconds"` |
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.
@copilot how would the metav1.Duration accept "Auto" ? Is it enough to let it unset instead of using Auto?
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.
You're correct - metav1.Duration doesn't accept "Auto" as a value. I've removed "Auto" from the validation pattern and updated the documentation to clarify that leaving the field unset (nil) triggers auto-detection from /proc/sys/net/ipv4/ipfrag_time. Fixed in a42bed4.
Co-authored-by: tomastigera <49207409+tomastigera@users.noreply.github.com>
tomastigera
left a comment
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.
remove changes to files in cni-plugin/ those are unrelated
_codeql_detected_source_root
Outdated
| @@ -0,0 +1 @@ | |||
| . No newline at end of file | |||
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.
@copilot remove this change
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.
Removed in 13fa293.
Co-authored-by: tomastigera <49207409+tomastigera@users.noreply.github.com>
Removed unrelated cni-plugin changes in 13fa293. |
Implementation Plan for bpfIPFragTimeout
BPFIPFragTimeoutfield to API FelixConfigurationSpec (api/pkg/apis/projectcalico/v3/felixconfig.go)BPFIPFragTimeoutto Felix config struct (felix/config/config_params.go)felix/bpf-gpl/globals.h)felix/bpf/libbpf/libbpf_common.go)felix/bpf/libbpf/libbpf_api.h)felix/bpf/libbpf/libbpf.go)felix/bpf/tc/attach.go)/proc/sys/net/ipv4/ipfrag_timewhen unsetfelix/dataplane/driver.go,felix/dataplane/linux/int_dataplane.go)make generate)Summary
Successfully implemented bpfIPFragTimeout configuration option for Felix. The option:
net.ipv4.ipfrag_timewhen left unset (nil)All automated checks passed successfully. Removed unrelated changes.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.