Skip to content
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

Add Peer2Peer P4 rules independant of order of deployment, and other fixes. #286

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

sudhar-krishnakumar
Copy link
Contributor

Changes to ensure that Peer2Peer P4 rules, will get added, independant, of order of deployment of VSP(ipu-plugin) on x86-host and ACC. If ipu-plugin's Init function gets invoked on ACC, prior to getting invoked on x86, then host VFs will not be setup yet. In that case, peer2peer rules can get added in CreateBridgePort or CreateNetworkFunction. Moved Deletion of P4 rules(such as PeerToPeer) at the point, where pod gets deleted, this increases the timeout period to greater than default 30 seconds, so updated vsp-ds.yaml file with increased timeout. And few misc fixes part of this PR.

of order of deployment of VSP(ipu-plugin) on x86-host and ACC.
If ipu-plugin's Init function gets invoked on ACC, prior to getting
invoked on x86, then host VFs will not be setup yet. In that case, peer2peer
rules can get added in CreateBridgePort or CreateNetworkFunction.
Moved Deletion of P4 rules(such as PeerToPeer) at the point,
where pod gets deleted, this increases the timeout period to
greater than default 30 seconds, so updated vsp-ds.yaml file with
increased timeout. And few misc fixes part of this PR.
ipu-plugin/pkg/ipuplugin/lifecycleservice.go Outdated Show resolved Hide resolved
type: ""
name: host-opt
- hostPath:
path: /lib/modules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is not present in volumeMounts list. Intentional?

return fmt.Errorf("No NFs initialized on the host")
// If ipu-plugin's Init function gets invoked on ACC, prior to getting invoked
// on x86, then host VFs will not be setup yet. In that case, peer2peer rules
// can get added in CreateBridgePort or CreateNetworkFunction.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understood. "Can get added" or "will get added"? Does the dpu daemon have to send those or will the ipu plugin have intelligence to automatically program those?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can get added anywhere...depending on the sequence. Either in configureFXP or CreateBridgePort or CreateNetworkFunction.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it added there today?

@sudhar-krishnakumar sudhar-krishnakumar merged commit 540b6b8 into main Dec 5, 2024
16 checks passed
@sudhar-krishnakumar sudhar-krishnakumar deleted the misc_fixes branch January 22, 2025 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants