-
Notifications
You must be signed in to change notification settings - Fork 543
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
[orchagent]: Use priorities in orchagent #475
[orchagent]: Use priorities in orchagent #475
Conversation
@@ -16,8 +16,10 @@ extern sai_object_id_t gSwitchId; | |||
extern PortsOrch* gPortsOrch; | |||
extern CrmOrch * gCrmOrch; | |||
|
|||
const int fdborch_pri = 20; |
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.
fdborch_pri [](start = 10, length = 11)
It's inconvenient to scatter all the similar priority settings to many files.
@@ -36,6 +37,8 @@ const char config_db_key_delimiter = '|'; | |||
#define CONFIGDB_KEY_SEPARATOR "|" | |||
#define DEFAULT_KEY_SEPARATOR ":" | |||
|
|||
const int default_orch_pri = 0; |
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.
default_orch_pri [](start = 10, length = 16)
Move it to class local?
Hi Qi, I'm going to refactor the whole orchdaemon class to make it readable including priorities. I didn't want to refactor in this PR, otherwise this PR would be stuck for another week. |
…onic-net#475) * Change PFC watchdog CONFIG_DB table name from PFC_WD_TABLE to PFC_WD Signed-off-by: Wenda Ni <wenni@microsoft.com>
* 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 * Add specific comparison logic for tunnel map
What I did
I've added support of Selectable priorities for orchagent.
I've put following priorities to orchagent tables:
All other orchagent run with lowest priority which is 0.
Why I did it
To prioritize messages inside of the orchagent message queue.
How I verified it
Build swss and run it
Details if related