Skip to content

[Dynamic Buffer][Mellanox] Fix an issue when handling 2-digit queue ID in the Lua plugin #3588

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

stephenxs
Copy link
Collaborator

What I did

Fix an issue when handling 2-digit queue ID in the Lua plugin

Why I did it

Bug fix.

How I verified it

Manual and VS test

Details if related

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs stephenxs force-pushed the buffer-support-large-queue branch from e6461a3 to f683d28 Compare April 5, 2025 01:22
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs stephenxs force-pushed the buffer-support-large-queue branch from f683d28 to 46d14ec Compare April 15, 2025 12:37
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).


# Run lua script and check output
_, output = dvs.runcmd("redis-cli --eval /usr/share/swss/buffer_pool_vs.lua")
assert re.search(r"debug:BUFFER_PROFILE_TABLE:egress_test_profile:16384:20", output), "Profile reference count not found in output"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also double check ASIC_DB?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @kperumalbfn
Understanding the mapping between ASIC_DB and APPL DB requires more complicated logic which we do not have in vs.
We have a lot of checks between ASIC/APPL DB in the sonic-mgmt test leveraging existing infra there
So, I don't want to add such logic here.
What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use counter_db's QUEUE_NAME_MAP to get the queue OID based on the port+queueIndex and validate with ASIC_DB? This will make sure that profiles are attached to the queues 10-19

@stephenxs
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs
Copy link
Collaborator Author

same issue as that in other PRs. Retrying

@stephenxs
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs stephenxs force-pushed the buffer-support-large-queue branch from 46d14ec to c67135f Compare April 18, 2025 10:52
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Apr 19, 2025

@kperumalbfn , is it good to merge?

@stephenxs stephenxs force-pushed the buffer-support-large-queue branch from c67135f to bc502cb Compare April 19, 2025 11:09
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs stephenxs requested a review from kperumalbfn April 21, 2025 06:12
@stephenxs
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs stephenxs force-pushed the buffer-support-large-queue branch from bc502cb to bfdf490 Compare April 21, 2025 23:24
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs stephenxs force-pushed the buffer-support-large-queue branch from bfdf490 to c47e8fb Compare April 22, 2025 23:38
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Stephen Sun <[email protected]>
Signed-off-by: Stephen Sun <[email protected]>
@stephenxs stephenxs force-pushed the buffer-support-large-queue branch from c47e8fb to 029b0db Compare April 24, 2025 22:12
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

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.

4 participants