-
Notifications
You must be signed in to change notification settings - Fork 0
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
Policer counter #3
base: master
Are you sure you want to change the base?
Conversation
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.
Great HLD! Just minor comments, mostly about rephrasing some of the English.
|
||
``` | ||
; Defines information for policer counter | ||
key = "COUNTERS:counter_oid" ; policer counter statistic |
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.
There is an extra indent here
; Defines information for COUNTERS_POLICER_NAME_MAP | ||
key = COUNTERS_POLICER_NAME_MAP ; policer name to its oid | ||
;field = value | ||
<policer_name_to_counter> = STRING ; name of the policer, value is the counter OID |
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.
Maybe just call it <policer_name>? i don't know what "to_counter" means.
``` | ||
|
||
PolicerOrch holds a new object of type FlexCounterManager and is initialized with ```StatsMode::READ``` | ||
and a default polling interval of 10 sec and disable by default: |
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.
"with a default polling interval of 10 seconds."
I would move "and disabled by default" to after the code block below.
FlexCounterManager m_pc_manager;
m_pc_manager is disabled by default.
|
||
### Warmboot and Fastboot Design Impact | ||
|
||
Counter polling is delayed at system startup. |
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.
Can you explain a bit more about how it is delayed at startup? Is this a new thing you are adding? Is it because it uses FC?
Either just for me, or if you think it is worth adding to this section as well.
97c50eb
to
7631525
Compare
7631525
to
b1e4882
Compare
No description provided.