On some platforms (specifically Broadcom TH4/TH5), there are not an equal number of unicast and multicast queues. Previous code would assume that there was an even number, causing missing snmp counters.
Instead of wrapping multicast values based on maximum number of queues, after this change the wrap is based on number of priority groups.
- How I did it
Modified code to use STATE_DB "max_priority_groups" instead of "max_queues".
- How to verify it
Verified on J2C/TH4/TH5 based platforms.
snmpwalk shows 8 queues, first 4 show multicast counters:
(Fix for https://github.com/sonic-net/sonic-buildimage/issues/20033)
- What I did
On some platforms (specifically Broadcom TH4/TH5), there are not an equal number of unicast and multicast queues. Previous code would assume that there was an even number, causing missing snmp counters.
Instead of wrapping multicast values based on maximum number of queues, after this change the wrap is based on number of priority groups.
- How I did it
Modified code to use STATE_DB "max_priority_groups" instead of "max_queues".
- How to verify it Verified on J2C/TH4/TH5 based platforms.
snmpwalk shows 8 queues, first 4 show multicast counters:
- Description for the changelog
Modify SNMP QoS MIB to wrap multicast counters based on maximum number of priority groups.