Skip to content

Make sonic-vpp use vs/vpp combined libsai #22492

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

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

Conversation

yue-fred-gao
Copy link
Contributor

Why I did it

sonic-vpp sai layer has been merged with vs libsai by PR sonic-net/sonic-sairedis#1473. This reduces a lot of duplication. Now we need to modify sonic-vpp image build to utilize the combined libsai

Work item tracking
  • Microsoft ADO (number only):

How I did it

  • Add rules/vpp.mk to build vpp debian packages from platform/vpp. The Makefile in platform/vpp will download debian packages if they are available in online storage. Otherwise, it will build it from source. See With combined libsai sonic-platform-vpp#174
  • Modify sairedis.mk with dependency on vpp debian packages, which are needed to build the combined libsaivs.
  • Introduced new sai.profile for vpp, which sets SAI_VS_SWITCH_TYPE to SAI_VS_SWITCH_TYPE_VPP. See Use sai_vpp.profile when starting vpp syncd sonic-sairedis#1591 for choosing the profile when starting vpp syncd.

How to verify it

Build sonic-vpp image and run sonic-mgmt tests

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

- Add makefile to build vpp
- Add sai profile for vpp
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liushilongbuaa
Copy link
Contributor

/azpw ms_conflict

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.

4 participants