-
Notifications
You must be signed in to change notification settings - Fork 484
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
Add occupancy and watermark counters in cells #2092
base: master
Are you sure you want to change the base?
Add occupancy and watermark counters in cells #2092
Conversation
Add occcupancy and watermark counters for priority group and queue objects in shared buffer cells to report them as they are in counted in the ASIC. Also add a companion read-only attribute to get the cell size of a shared buffer in a switch. Signed-off-by: Marian Pritsak <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@vmittal-msft - FYI |
|
SAI_INGRESS_PRIORITY_GROUP_STAT_CURR_OCCUPANCY_CELLS = 0x00000009, | ||
|
||
/** Get watermark pg occupancy in cells [uint64_t] */ | ||
SAI_INGRESS_PRIORITY_GROUP_STAT_WATERMARK_CELLS = 0x0000000a, |
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.
Hi Marian, just a sanity checks here, do we need:
- SAI_INGRESS_PRIORITY_GROUP_STAT_XOFF_ROOM_CURR_OCCUPANCY_CELLS
- SAI_INGRESS_PRIORITY_GROUP_STAT_XOFF_ROOM_WATERMARK_CELLS
For SAI_INGRESS_PRIORITY_GROUP_STAT_BYTES, I believe it is supported, and we don't need the cell counts (as it will be bad for tracking the traffic volume).
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.
are we missing the buffer pool ones? or can they be supported in bytes?
SAI_QUEUE_STAT_CURR_OCCUPANCY_CELLS = 0x00000028, | ||
|
||
/** Get watermark queue occupancy in cells [uint64_t] */ | ||
SAI_QUEUE_STAT_WATERMARK_CELLS = 0x00000029, |
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.
same here, do we need SAI_BUFFER_POOL_STAT_XOFF_ROOM_WATERMARK_CELLS?
Add occcupancy and watermark counters for
priority group and queue objects in shared buffer cells to report them as they are in counted in the ASIC. Also add a companion read-only attribute to
get the cell size of a shared buffer in a switch.