-
Notifications
You must be signed in to change notification settings - Fork 128
Implement RDMA subsystem mode change #666
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
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 |
|---|---|---|
|
|
@@ -21,6 +21,10 @@ type SriovNetworkPoolConfigSpec struct { | |
| // Drain will respect Pod Disruption Budgets (PDBs) such as etcd quorum guards, | ||
| // even if maxUnavailable is greater than one. | ||
| MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"` | ||
|
|
||
| // +kubebuilder:validation:Enum=shared;exclusive | ||
| // RDMA subsystem. Allowed value "shared", "exclusive". | ||
| RdmaMode string `json:"rdmaMode,omitempty"` | ||
|
Collaborator
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. This option is only valid for systemd mode?
Collaborator
Author
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. done as log message in a SriovNetworkPoolConfig controller
Collaborator
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. @e0ne cant we set this using module parameter ? |
||
| } | ||
|
|
||
| type OvsHardwareOffloadConfig struct { | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -272,6 +272,13 @@ func (r *SriovNetworkNodePolicyReconciler) syncAllSriovNetworkNodeStates(ctx con | |
| ns.Name = node.Name | ||
| ns.Namespace = vars.Namespace | ||
| j, _ := json.Marshal(ns) | ||
| netPoolConfig, _, err := findNodePoolConfig(ctx, &node, r.Client) | ||
|
Collaborator
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. nit: move this b4 L274 so |
||
| if err != nil { | ||
| log.Log.Error(err, "nodeStateSyncHandler(): failed to get SriovNetworkPoolConfig for the current node") | ||
|
Collaborator
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. nit: err msg func name is wrong |
||
| } | ||
| if netPoolConfig != nil { | ||
| ns.Spec.System.RdmaMode = netPoolConfig.Spec.RdmaMode | ||
| } | ||
| logger.V(2).Info("SriovNetworkNodeState CR", "content", j) | ||
| if err := r.syncSriovNetworkNodeState(ctx, dc, npl, ns, &node); err != nil { | ||
| logger.Error(err, "Fail to sync", "SriovNetworkNodeState", ns.Name) | ||
|
|
||
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.
I think you can add here also
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.
done