Skip to content

Commit

Permalink
[syncd] Remove notify pointers manual handling (#1326)
Browse files Browse the repository at this point in the history
It's handled inside loop where meta->attrvaluetype == SAI_ATTR_VALUE_TYPE_POINTER
  • Loading branch information
kcudnik authored Nov 28, 2023
1 parent 4ee9c25 commit 9621316
Showing 1 changed file with 0 additions and 16 deletions.
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

0 comments on commit 9621316

Please sign in to comment.