Skip to content

Commit

Permalink
[p4orch] Fix handlePortStatusChangeNotification status deserialize (s…
Browse files Browse the repository at this point in the history
…onic-net#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 <[email protected]>
  • Loading branch information
vboykox authored Jan 19, 2022
1 parent 863f0f1 commit 6cb43ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/p4orch/p4orch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 6cb43ee

Please sign in to comment.