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
BUG 1798043: Optimize VF configure logic #146
Conversation
ef77813
to
0462b81
Compare
| glog.Errorf("configSriovDevice(): fail to set NumVfs for device %s", iface.PciAddress) | ||
| return err | ||
| // set numVFs | ||
| if iface.NumVfs != ifaceStatus.NumVfs { |
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.
This is checked in needUpdate, is there other reason to check it here again?
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.
needUpdate will return 'True' if any of the parameter has been updated. However, we need to check if one parameter shall be updated separately before executing.
| if err != nil { | ||
| glog.Warningf("configSriovDevice(): fail to set mtu for PF %s: %v", iface.PciAddress, err) | ||
| return err | ||
| if iface.Mtu > 0 && iface.Mtu != ifaceStatus.Mtu { |
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.
ditto
Check whether desired state is the same as the current one before executing.
|
@pliurh: This pull request references Bugzilla bug 1798043, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/bugzilla refresh |
|
@pliurh: This pull request references Bugzilla bug 1798043, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/lgtm |
|
@pliurh: All pull requests linked via external trackers have merged. Bugzilla bug 1798043 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Update Webhook Configuration objects when Reconciling
Check whether desired state is the same as the current one before
executing.