-
Notifications
You must be signed in to change notification settings - Fork 583
Add PFC Deadlock Detection timer granularity attributes #2250
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2925,6 +2925,17 @@ typedef enum _sai_port_attr_t | |
| */ | ||
| SAI_PORT_ATTR_LINK_UP_DEBOUNCE_TIMEOUT, | ||
|
|
||
| /** | ||
| * @brief Port PFC Deadlock Detection timer granularity in milliseconds. | ||
| * | ||
| * Specifies the hardware timer granularity for PFC deadlock detection. | ||
| * | ||
| * @type sai_map_list_t | ||
| * @flags CREATE_AND_SET | ||
| * @default empty | ||
| */ | ||
| SAI_PORT_ATTR_PFC_TC_DLD_TIMER_INTERVAL, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you also add the unit of the granularity? Is this in milliseconds?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, updated. Thanks. |
||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Real use-case of different timer intervals for different ports ? For uplink and downlink for example ? |
||
| /** | ||
| * @brief End of attributes | ||
| */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3550,6 +3550,17 @@ typedef enum _sai_switch_attr_t | |
| */ | ||
| SAI_SWITCH_ATTR_LINK_UP_DEBOUNCE_TIMEOUT, | ||
|
|
||
| /** | ||
| * @brief PFC Deadlock Detection timer granularity in milliseconds. | ||
| * | ||
| * Specifies the hardware timer granularity for PFC deadlock detection. | ||
| * | ||
| * @type sai_map_list_t | ||
| * @flags CREATE_AND_SET | ||
| * @default empty | ||
| */ | ||
| SAI_SWITCH_ATTR_PFC_TC_DLD_TIMER_INTERVAL, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not to use the existing SAI_SWITCH_ATTR_PFC_TC_DLD_INTERVAL SAI attribute ? We will have 2 now : SAI_SWITCH_ATTR_PFC_TC_DLD_INTERVAL (old) and SAI_SWITCH_ATTR_PFC_TC_DLD_TIMER_INTERVAL (new)
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SAI_SWITCH_ATTR_PFC_TC_DLD_INTERVAL and SAI_PORT_ATTR_PFC_TC_DLD_INTERVAL are existing attributes that define the detection time to trigger deadlock state on a port/queue.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| /** | ||
| * @brief End of attributes | ||
| */ | ||
|
|
||
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.
@pinky-nexthop why list of granularities?
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.
Good point. Removed.