Skip to content
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

[action] [PR:330] Fix SNMP output having fewer unicast queues than expected (#330) #334

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

mssonicbld
Copy link
Collaborator

justin-wong-ce
First-time contributor
justin-wong-ce commented on Sep 6 •
SNMP assumes the first half of the queues to be unicast and the second half to be multicast. This assumption was fine for most hwSkus but not new ones being added to support, i.e. x86_64-arista_7060x6.

This change will allow configurations where there are more than half of maximum queues set as unicast. It however does not account for the case where there are more than half of the maximum queues set as multicast - that will cause problems for the sonic-mgmt snmp/test_snmp_queue.py test.

If the SNMP is expected to only return unicast queues, then I will make further changes to the unit test and source code to reflect this expectation in functionality.
If not, sonic-mgmt's snmp/test_snmp_queue.py should not expect only unicast queues to be returned, and SNMP should return all queues, not half (https://github.com/sonic-net/sonic-mgmt/blob/ac37f7f0fd7c7857559325a61d5ca6e6c4932194/tests/snmp/test_snmp_queue.py#L92) (grep UC)

Note:
Only tested on Arista hwSkus.

  • What I did
    Accommodate for the case where the number of Unicast queues exceed the number of Multicast queues.

  • How I did it
    Allow Unicast queues to be added to response when their queue number is greater than half of the total number of queues.

  • How to verify it
    Passing unit tests and SNMP tests in sonic-mgmt. Note: Only ran on Arista hwSkus

  • Description for the changelog

)

justin-wong-ce
First-time contributor
justin-wong-ce commented on Sep 6 • 
SNMP assumes the first half of the queues to be unicast and the second half to be multicast. This assumption was fine for most hwSkus but not new ones being added to support, i.e. x86_64-arista_7060x6.

This change will allow configurations where there are more than half of maximum queues set as unicast. It however does not account for the case where there are more than half of the maximum queues set as multicast - that will cause problems for the sonic-mgmt snmp/test_snmp_queue.py test.

If the SNMP is expected to only return unicast queues, then I will make further changes to the unit test and source code to reflect this expectation in functionality.
If not, sonic-mgmt's snmp/test_snmp_queue.py should not expect only unicast queues to be returned, and SNMP should return all queues, not half (https://github.com/sonic-net/sonic-mgmt/blob/ac37f7f0fd7c7857559325a61d5ca6e6c4932194/tests/snmp/test_snmp_queue.py#L92) (grep UC)

Note:
Only tested on Arista hwSkus.

- What I did
Accommodate for the case where the number of Unicast queues exceed the number of Multicast queues.

- How I did it
Allow Unicast queues to be added to response when their queue number is greater than half of the total number of queues.

- How to verify it
Passing unit tests and SNMP tests in sonic-mgmt. Note: Only ran on Arista hwSkus

- Description for the changelog
@mssonicbld
Copy link
Collaborator Author

Original PR: #330

@mssonicbld mssonicbld merged commit 9d5ce53 into sonic-net:202405 Oct 14, 2024
4 checks passed
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.

2 participants