-
Notifications
You must be signed in to change notification settings - Fork 738
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
Verify buffer priority groups for all platforms #4482
Verify buffer priority groups for all platforms #4482
Conversation
…anager in 201911 (#3889) ### Description of PR Summary: Add test case for traditional buffer manager for fundamental functionalities and reclaiming unused buffer. ### Approach #### What is the motivation for this PR? Add test case for traditional buffer manager for fundamental functionalities and reclaiming unused buffer. #### How did you do it? 1. For all ports in the config_db, - Check whether there is no lossless buffer PG configured on an admin-down port - Check whether the lossless PG aligns with the port's speed and cable length - If the name-to-OID maps exist for port and PG, check whether the information in ASIC_DB aligns with that in CONFIG_DB - If a lossless profile hasn't been checked, check whether the lossless profile in CONFIG_DB aligns with - pg_profile_lookup.ini according to speed and cable length - information in ASIC_DB 2. Shutdown a port and check whether the lossless buffer PG has been removed 3. Startup the port and check whether the lossless PG has been readded. #### How did you verify/test it? Run regression test.
Signed-off-by: Stephen Sun <[email protected]>
Signed-off-by: Stephen Sun <[email protected]>
/azpw run |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Stephen Sun <[email protected]>
tests/qos/test_buffer_traditional.py
Outdated
port_to_shutdown = admin_up_ports.pop() | ||
expected_profile = duthost.shell('redis-cli -n 4 hget "BUFFER_PG|{}|3-4" profile'.format(port_to_shutdown))['stdout'] | ||
try: | ||
# Shutdown the port and check whether the lossless PG has been removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update comment.. lossless PG has been removed on Mellanox
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Adjusted comment in other places as well.
Depends on sonic-net/sonic-swss#1837. Will merge after that PR is in |
Signed-off-by: Stephen Sun <[email protected]>
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Verify buffer priority groups for non-Mellanox platforms as well.
Signed-off-by: Stephen Sun [email protected]
How did you do it?
How did you verify/test it?
It was verified on Mellanox platform. An old image without reclaiming buffer is adapted to simulate non-Mellanox platform.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation