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

[swss] Add an oneshot service to present the portInitDone state #9476

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gord1306
Copy link

@gord1306 gord1306 commented Dec 9, 2021

Why I did it

There are services may use netlink to communiate with kernel, but
not all of services check the PortInitDone. That mesans these services
would be start when netdev is unstable. For buffermgrd, it checks
the PortInitDone being written into the PORT_TABLE of APPL_DB before
starting. But to implement duplicated check in the other services
would cause the duplicated code. This patch would like to add a
oneshot service - portinitdone to present the system is in the
PortInitDone state. And move some services be back of this service

Signed-off-by: gord_chen gord_chen@edge-core.com

How I did it

How to verify it

Check the services of swss could be startup successfully

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

@gord1306
Copy link
Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@gord1306 gord1306 force-pushed the portinitdone branch 3 times, most recently from 998db2d to aba3da8 Compare December 13, 2021 05:57
There are services may use netlink to communiate with kernel, but
not all of services check the PortInitDone. That mesans these services
would be start when netdev is unstable. For buffermgrd, it checks
the PortInitDone being written into the PORT_TABLE of APPL_DB before
starting. But to implement duplicated check in the other services
would cause the duplicated code. This patch would like to add a
oneshot service - portinitdone to present the system is in the
PortInitDone state. And move some services be back of this service

Signed-off-by: gord_chen <gord_chen@edge-core.com>
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