Skip to content

[Mellanox] Preserve explicit buffer_model=dynamic in buffer migrator#4609

Open
william8545 wants to merge 1 commit into
sonic-net:masterfrom
william8545:buffer_model_fix
Open

[Mellanox] Preserve explicit buffer_model=dynamic in buffer migrator#4609
william8545 wants to merge 1 commit into
sonic-net:masterfrom
william8545:buffer_model_fix

Conversation

@william8545

Copy link
Copy Markdown
Contributor

Guard the traditional-fallback in mlnx_flush_new_buffer_configuration() so it no longer overwrites buffer_model to "traditional" when the device has already declared buffer_model=dynamic.

What I did

Fix MellanoxBufferMigrator.mlnx_flush_new_buffer_configuration() so it no longer
overwrites DEVICE_METADATA.buffer_model from dynamic to traditional on newer
SKUs whose dynamic-mode pool layout is not registered in the migrator's static
mellanox_default_parameter table.

How I did it

The fix encodes that precondition into the existing condition rather than introducing a parallel code path.

How to verify it

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Guard the traditional-fallback in mlnx_flush_new_buffer_configuration()
so it no longer overwrites buffer_model to "traditional" when the device
has already declared buffer_model=dynamic.

Signed-off-by: William Tsai <willtsai@nvidia.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

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