Skip to content

Commit e892dda

Browse files
Praveen-Brcmjudyjoseph
authored andcommitted
Fix warmboot issue PR##8367 (#1866)
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.
1 parent 9c6023d commit e892dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orchagent/fdborch.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,8 @@ bool FdbOrch::addFdbEntry(const FdbEntry& entry, const string& port_name,
12711271

12721272
attrs.push_back(attr);
12731273

1274-
if ((fdbData.origin == FDB_ORIGIN_VXLAN_ADVERTIZED) || (fdbData.origin == FDB_ORIGIN_MCLAG_ADVERTIZED)
1275-
|| (fdbData.type == "dynamic"))
1274+
if (((fdbData.origin == FDB_ORIGIN_VXLAN_ADVERTIZED) || (fdbData.origin == FDB_ORIGIN_MCLAG_ADVERTIZED))
1275+
&& (fdbData.type == "dynamic"))
12761276
{
12771277
attr.id = SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE;
12781278
attr.value.booldata = true;

0 commit comments

Comments
 (0)