-
Notifications
You must be signed in to change notification settings - Fork 114
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
Do not skip VFs configuration for BlueField 2 NICs in legacy mode #235
Conversation
Let's configure VFs for BlueField 2 NICs in legacy mode if user wants to use these NICs in a such way. Signed-off-by: Ivan Kolodyazhny <[email protected]>
Thanks for your PR,
To skip the vendors CIs use one of:
|
As background, the use-case is using DPU as a "regular NIC". a mode which is called "separated" for Bluefield DPU |
@@ -36,7 +36,6 @@ const ( | |||
ClusterTypeOpenshift = "openshift" | |||
ClusterTypeKubernetes = "kubernetes" |
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 const isn't used anywhere and should be cleaned up sometime
@e0ne @adrianchiris We may still want to skip BF2 in
With this commit, BF2 configuration may be erased or reset once config-daemon starts. |
@zshi-redhat, thanks for you feedback
Unfortunately, this assumption is not valid now. I'm going to fix it in scope of #81. It works for a switchdev only now
Could you please elaborate more on this case? It's not clear to me.
How does it work/supposed to be working with SR-IOV Operator?
The current implementation resets all found devices. We need to fix it in a PR to not reset devices which aren't included in policy.
Without this commit we can't configure BF2 in a separated mode. |
It was done through this PR: #201
Switchdev mode is required to enable OVS HWOL feature for CX- series cards, but in BF2 case (embedded cpu mode), offload happens in BF2 arm core and switchdev mode configuration is moved from host to BF2 system. On the corresponding x86 host, switchdev mode is not needed.
There is no big difference on how sriov operator is used here, user just needs to create a sriovnetworknodepolicy (w/o specifying switchdev mode), all the rest configuration in sriovnetworknodepolicy are the same.
I think the config-daemon needs to know which mode BF2 is being configured, then use systemd for embedded cpu mode and config-daemon runtime config for separated mode. |
@zshi-redhat PR #201 confused me too. Unfortunately it doesn't work as expected. In a current implementation BF2 configuration is ignored if we don't use switchdev mode. |
It's what my PR does, isn't it? |
In current implementation, bluefield-2 is ignored w/ or w/o switchdev config.
if it is not switchdev, then it will be ignore at:
Here ignore means not to run |
For BlueFIeld in ConnectX mode, I think we may need the following as a temp solution:
|
@zshi-redhat I understood your point now. Will test your suggestion and update PR shortly |
It doesn't work to me. We it even breaks BF2 configuration for switchdev |
Could you paste the change or issue ? |
Will be fixed in #240 |
Let's configure VFs for BlueField 2 NICs in legacy mode if user
wants to use these NICs in a such way.
Signed-off-by: Ivan Kolodyazhny [email protected]