Skip to content

[Mellanox] platform: Enable cache on init#22651

Closed
jianyuewu wants to merge 1 commit intosonic-net:masterfrom
jianyuewu:enable_cmis_cache
Closed

[Mellanox] platform: Enable cache on init#22651
jianyuewu wants to merge 1 commit intosonic-net:masterfrom
jianyuewu:enable_cmis_cache

Conversation

@jianyuewu
Copy link
Contributor

Depends on: sonic-net/sonic-platform-common#562

Set cache enabled flag.

Why I did it

Centralize the XCVR cache enablement logic in the Mellanox platform API so that CMIS cache is configured automatically at Platform initialization for Mellanox platform.

How I did it

In Platform.init, call CmisApi.set_cache_enabled(True) to set as cache_enabled in cmis.

How to verify it

Build and deploy the updated platform daemon package.

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

  • 202411
  • 202412

Tested branch (Please provide the tested image version)

master.637-eafe0ccb9_Internal

Set cache enabled flag.

Signed-off-by: Jianyue Wu <[email protected]>
@jianyuewu jianyuewu requested a review from lguohan as a code owner May 20, 2025 01:29
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jianyuewu
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jianyuewu
Copy link
Contributor Author

/azpw ms_conflict

@keboliu
Copy link
Collaborator

keboliu commented May 23, 2025

@prgeor would you please review?

@jianyuewu
Copy link
Contributor Author

Cache can be enabled by all vendors, so no need this PR.

@yejianquan
Copy link
Contributor

Hi @jianyuewu @keboliu , just removed request for 202505 label since it's closed, please add it back if reopen and needed

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.

5 participants