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

Policer counter #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Policer counter #3

wants to merge 6 commits into from

Conversation

shiraez
Copy link

@shiraez shiraez commented Nov 24, 2024

No description provided.

Copy link
Collaborator

@amazor amazor left a 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
Copy link
Collaborator

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
Copy link
Collaborator

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.

doc/policer_counter/PolicerCounter-HLD.md Outdated Show resolved Hide resolved
```

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:
Copy link
Collaborator

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.

doc/policer_counter/PolicerCounter-HLD.md Outdated Show resolved Hide resolved
doc/policer_counter/PolicerCounter-HLD.md Outdated Show resolved Hide resolved
doc/policer_counter/PolicerCounter-HLD.md Outdated Show resolved Hide resolved
doc/policer_counter/PolicerCounter-HLD.md Outdated Show resolved Hide resolved

### Warmboot and Fastboot Design Impact

Counter polling is delayed at system startup.
Copy link
Collaborator

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.

doc/policer_counter/PolicerCounter-HLD.md Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants