From 962131601d5d99d1cb85eee636c2f1d01802e6d1 Mon Sep 17 00:00:00 2001 From: Kamil Cudnik Date: Tue, 28 Nov 2023 09:07:10 +0100 Subject: [PATCH] [syncd] Remove notify pointers manual handling (#1326) It's handled inside loop where meta->attrvaluetype == SAI_ATTR_VALUE_TYPE_POINTER --- syncd/Syncd.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/syncd/Syncd.cpp b/syncd/Syncd.cpp index df442ff42..a54384e82 100644 --- a/syncd/Syncd.cpp +++ b/syncd/Syncd.cpp @@ -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 attrs; sai_attribute_t attr; @@ -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();