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

[PFCWD]: Periodically poll WD counters #473

Merged
merged 2 commits into from
May 2, 2018

Conversation

marian-pritsak
Copy link
Collaborator

For every action handler call commitCounters on a periodic basis

Signed-off-by: marian-pritsak [email protected]

For every action handler call commitCounters on a periodic basis

Signed-off-by: marian-pritsak <[email protected]>
@@ -22,6 +22,7 @@
#define PFC_WD_POLL_TIMEOUT 5000
#define SAI_PORT_STAT_PFC_PREFIX "SAI_PORT_STAT_PFC_"
#define PFC_WD_TC_MAX 8
#define COUNTER_CHECK_POLL_TIMEOUT_SEC 5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer 1 second

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the polling interval controlled via cli or via config_db.json? If yes can you please explain how?

If not this needs fixing prior to committing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not controllable from the cli, this is only polling queue when the queue in pfc recovery state, in this case, we need to periodically poll it to get dropped packets. I do not see a generic need to make it controllable from cli.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lguohan All polling intervals need to be controlled via the cli and should provide the ability to be disabled.

@@ -22,6 +22,7 @@
#define PFC_WD_POLL_TIMEOUT 5000
#define SAI_PORT_STAT_PFC_PREFIX "SAI_PORT_STAT_PFC_"
#define PFC_WD_TC_MAX 8
#define COUNTER_CHECK_POLL_TIMEOUT_SEC 5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the polling interval controlled via cli or via config_db.json? If yes can you please explain how?

If not this needs fixing prior to committing.

@@ -22,6 +22,7 @@
#define PFC_WD_POLL_TIMEOUT 5000
#define SAI_PORT_STAT_PFC_PREFIX "SAI_PORT_STAT_PFC_"
#define PFC_WD_TC_MAX 8
#define COUNTER_CHECK_POLL_TIMEOUT_SEC 5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lguohan All polling intervals need to be controlled via the cli and should provide the ability to be disabled.

@lguohan
Copy link
Contributor

lguohan commented Apr 30, 2018

retest this please

@lguohan
Copy link
Contributor

lguohan commented Apr 30, 2018

@Nikos-Li , this is a internal feature and the user should not care about it and does not need to control that.

@sihuihan88 sihuihan88 merged commit 477d124 into sonic-net:master May 2, 2018
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
…#473)

'/sbin/reboot' randomly trigger a delay in shutdown path on some
platforms, this delay caused the lags to timeout.

Tested 'kexec -e' 1500+ times and never triggered the shutdown delay.

Signed-off-by: Ying Xie <[email protected]>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
…ch (sonic-net#473)

* Add default bridge id for bridge port id of type PORT in virtual switch

* Update recording

Virtual switch now supports Queue TYPE, so tests must be updated

* Address comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants