Skip to content

Commit

Permalink
Fix warmboot issue PR##8367 (#1866)
Browse files Browse the repository at this point in the history
During the WB when the MAC addresses are added via refillToSync(&m_fdbStateTable) , the attribute SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE is set wrongly for dynamic MAC as well.
Fix is to set SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE only for the case of VXLAN or MCLAG for fdb_type dyamic.
  • Loading branch information
Praveen-Brcm authored Aug 14, 2021
1 parent 0cdb136 commit 7d16f69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/fdborch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1271,8 +1271,8 @@ bool FdbOrch::addFdbEntry(const FdbEntry& entry, const string& port_name,

attrs.push_back(attr);

if ((fdbData.origin == FDB_ORIGIN_VXLAN_ADVERTIZED) || (fdbData.origin == FDB_ORIGIN_MCLAG_ADVERTIZED)
|| (fdbData.type == "dynamic"))
if (((fdbData.origin == FDB_ORIGIN_VXLAN_ADVERTIZED) || (fdbData.origin == FDB_ORIGIN_MCLAG_ADVERTIZED))
&& (fdbData.type == "dynamic"))
{
attr.id = SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE;
attr.value.booldata = true;
Expand Down

0 comments on commit 7d16f69

Please sign in to comment.