Skip to content

Commit

Permalink
In fdborch port state update, only call flushFDBEntries() when there is
Browse files Browse the repository at this point in the history
a bridge port OID.
  • Loading branch information
mint570 committed Jul 17, 2023
1 parent 5b27c20 commit ac85f91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion orchagent/fdborch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,10 @@ void FdbOrch::updatePortOperState(const PortOperStateUpdate& update)
if (update.operStatus == SAI_PORT_OPER_STATUS_DOWN)
{
swss::Port p = update.port;
flushFDBEntries(p.m_bridge_port_id, SAI_NULL_OBJECT_ID);
if (p.m_bridge_port_id != SAI_NULL_OBJECT_ID)
{
flushFDBEntries(p.m_bridge_port_id, SAI_NULL_OBJECT_ID);
}

// Get BVID of each VLAN that this port is a member of
// and call notifyObserversFDBFlush
Expand Down

0 comments on commit ac85f91

Please sign in to comment.