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

SAI bfd multihop changes along with state change notifications #110

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

Conversation

abdbaig
Copy link

@abdbaig abdbaig commented Sep 3, 2024

Objective

Add BFD multihop support in SONIC SAI VPP.

NOTE: This will only work when BFD multihop changes are also present in VPP codebase.

Changes

-Re-arrange existing BFD single-hop code
-Implement SAI changes to support BFD multihop session create and delete
-Add support to receive BFD notifications from VPP and propagate up to control plane so STATE_DB is updated with the latest BFD session state

Copy link

linux-foundation-easycla bot commented Sep 3, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

platform/saivpp/vpplib/vppxlate/SaiVppXlate.c Outdated Show resolved Hide resolved
platform/saivpp/vpplib/SwitchStateBaseBfd.cpp Outdated Show resolved Hide resolved
platform/saivpp/vpplib/SwitchStateBaseBfd.cpp Outdated Show resolved Hide resolved
platform/saivpp/vpplib/SwitchStateBaseRif.cpp Outdated Show resolved Hide resolved
platform/saivpp/vpplib/SwitchStateBaseBfd.cpp Show resolved Hide resolved
platform/saivpp/vpplib/SwitchStateBaseBfd.cpp Show resolved Hide resolved
break;
}

bfd_info.multihop = bfd_notif->multihop;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need port to find single hop bfd session?

Copy link
Author

Choose a reason for hiding this comment

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

Not currently necessary because the assumption is IP addresses will be different for different ports. To make it more foolproof, we can add it later.

platform/saivpp/vpplib/SwitchStateBaseRif.cpp Show resolved Hide resolved
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.

2 participants