Skip to content

[Smartswitch][chassisd] Addition of pre shutdown and post startup function calls#619

Merged
rlhui merged 2 commits into
sonic-net:masterfrom
gpunathilell:pcie_changes
Jun 2, 2025
Merged

[Smartswitch][chassisd] Addition of pre shutdown and post startup function calls#619
rlhui merged 2 commits into
sonic-net:masterfrom
gpunathilell:pcie_changes

Conversation

@gpunathilell

Copy link
Copy Markdown
Contributor

Description

Motivation and Context

The pre shutdown and post startup functions are called on DPU admin state change operations

How Has This Been Tested?

Additional Information (Optional)

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).


def submit_callback(self, module_index, admin_state):
if admin_state == MODULE_ADMIN_DOWN:
try_get(self.chassis.get_module(module_index).module_pre_shutdown, default=False)

@rameshraghupathy rameshraghupathy May 29, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider avoiding this call for platforms don't require this. Please add a comment just like the HLD, that this will be applicable to platforms that require entire pcie tree rescan and implemented this function. Otherwise it is a no-op.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed, Added comment mentioning that no actions will be taken on paltforms which do not have the relevant functions implemented. Please check

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants