From 6cb43ee25c8b810811bcf55f63e3e5ece7c82c7e Mon Sep 17 00:00:00 2001 From: Volodymyr Boiko Date: Wed, 19 Jan 2022 23:51:03 +0000 Subject: [PATCH] [p4orch] Fix handlePortStatusChangeNotification status deserialize (#2111) *Moved sai_deserialize_free_port_oper_status_ntf(count, port_oper_status); call outside the loop iterating port_oper_status array. Signed-off-by: Volodymyr Boyko --- orchagent/p4orch/p4orch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchagent/p4orch/p4orch.cpp b/orchagent/p4orch/p4orch.cpp index ada1fa2c7782..57d50aa5ce29 100644 --- a/orchagent/p4orch/p4orch.cpp +++ b/orchagent/p4orch/p4orch.cpp @@ -171,9 +171,9 @@ void P4Orch::handlePortStatusChangeNotification(const std::string &op, const std { m_wcmpManager->pruneNextHops(port.m_alias); } - - sai_deserialize_free_port_oper_status_ntf(count, port_oper_status); } + + sai_deserialize_free_port_oper_status_ntf(count, port_oper_status); } }