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

[SmartSwitch-BFD] Update sections of SmartSwitchDpuLivenessUsingBfd HLD #1859

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

abdbaig
Copy link

@abdbaig abdbaig commented Dec 1, 2024

  • BFD sessions in FRR are no longer statically set to passive. This indication will directly from BFD_SESSION_TABLE using "type" field.
  • Remove key DPU_ID from DASH_BFD_PROBE_STATE. This is not required since the table exists on individual DPUs.
  • BfdOrch will use switch_type dpu to check if software BFD session needs to be programmed in FRR, rather than use SAI API to query for HW offload.

abdbaig and others added 3 commits December 1, 2024 14:51
-BFD sessions in FRR are no longer statically set to passive. This indication will directly from BFD_SESSION_TABLE using "type" field.
-Remove key DPU_ID from DASH_BFD_PROBE_STATE. This is not required since the table exists on individual DPUs.
-BfdOrch will use switch_type dpu to check if software BFD session needs to be programmed in FRR, rather than use SAI API to query for HW offload.
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

No pipelines are associated with this pull request.

Copy link
Contributor

@kperumalbfn kperumalbfn left a comment

Choose a reason for hiding this comment

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

LGTM


SOFTWARE_BFD_SESSION_TABLE entry in STATE_DB has all the key fields and values from BFD_SESSION_TABLE.
HA manager also creates another BFD passive multihop session in DPU using BFD_SESSION_TABLE in APP_DB with local DPU PA and peer NPU PAs. BfdOrch checks switch_type in DEVICE_METADATA table of CONFIG_DB and if it's dpu, FRR is configured to trigger BFD sessions. BfdOrch creates BFD_SOFTWARE_SESSION_TABLE entry in STATE_DB with same field-value as passed from BFD_SESSION_TABLE. This allows flexibiliy in setting session type and other parameters from hamgrd.
Copy link
Contributor

@prsunny prsunny Feb 13, 2025

Choose a reason for hiding this comment

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

Please revert this section as the software bfd must be based on capability query in bfdorch. Rest of the changes regarding bgpcfgd looks fine. Can you please create a new PR to check capability since I merged the current swss PR?

Copy link

Choose a reason for hiding this comment

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

Will do - will update this PR once new PR is raised.

@prsunny prsunny changed the title Update several sections as per changed design [SmartSwitch-BFD] Update sections of SmartSwitchDpuLivenessUsingBfd HLD Feb 13, 2025
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.

5 participants