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

[syncd] Remove notify pointers manual handling #1326

Merged
merged 2 commits into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions syncd/Syncd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4394,16 +4394,6 @@ void Syncd::performWarmRestartSingleSwitch(

sai_object_id_t switchRid;

sai_attr_id_t notifs[] = {
SAI_SWITCH_ATTR_SWITCH_STATE_CHANGE_NOTIFY,
SAI_SWITCH_ATTR_SHUTDOWN_REQUEST_NOTIFY,
SAI_SWITCH_ATTR_FDB_EVENT_NOTIFY,
SAI_SWITCH_ATTR_NAT_EVENT_NOTIFY,
SAI_SWITCH_ATTR_PORT_STATE_CHANGE_NOTIFY,
SAI_SWITCH_ATTR_QUEUE_PFC_DEADLOCK_NOTIFY,
SAI_SWITCH_ATTR_BFD_SESSION_STATE_CHANGE_NOTIFY
};

std::vector<sai_attribute_t> attrs;

sai_attribute_t attr;
Expand All @@ -4413,12 +4403,6 @@ void Syncd::performWarmRestartSingleSwitch(

attrs.push_back(attr);

for (size_t idx = 0; idx < (sizeof(notifs) / sizeof(notifs[0])); idx++)
{
attr.id = notifs[idx];
attr.value.ptr = (void*)1; // any non-null pointer
}

sai_attribute_t *attrList = list.get_attr_list();

uint32_t attrCount = list.get_attr_count();
Expand Down
Loading