-
Notifications
You must be signed in to change notification settings - Fork 692
[portmgr] Fixed the orchagent crash due to late arrival of notif #2431
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
9700711
28f2fc9
eb7abf6
a35480b
e9c75e1
6ea8be8
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 |
|---|---|---|
|
|
@@ -2615,6 +2615,15 @@ bool PortsOrch::addPort(const set<int> &lane_set, uint32_t speed, int an, string | |
| { | ||
| SWSS_LOG_ENTER(); | ||
|
|
||
| if (!speed || lane_set.empty()) | ||
|
Collaborator
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. Does this impact VS swss initialization? Seems these two are mandatory on create
Contributor
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. That is why we are deferring until both of them are available. No, it doesn't. cfg used in VS has speed and lane_set defined, so shouldn't be a problem. |
||
| { | ||
| /* | ||
| speed and lane list are mandatory attributes for the initial create_port call | ||
| This check is required because the incoming notifs may not be atomic | ||
| */ | ||
| return true; | ||
| } | ||
|
|
||
| vector<uint32_t> lanes(lane_set.begin(), lane_set.end()); | ||
|
|
||
| sai_attribute_t attr; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.