Skip to content

Commit 8990e25

Browse files
keboliulguohan
authored andcommitted
fix a fdb-clear bug that introduced by SAI 1.2 modification (sonic-net#301)
consolidated fdb flush event will carry a fdb_entry include a null bvid, in fdb flush case it shall not be considered as a invalid fdb_entry Changes to be committed: modified: syncd/syncd_notifications.cpp
1 parent 07b9e00 commit 8990e25

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

syncd/syncd_notifications.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ void redisPutFdbEntryToAsicView(
8888

8989
std::string key = ASIC_STATE_TABLE + (":" + strObjectType + ":" + strFdbEntry);
9090

91-
if (fdb->fdb_entry.switch_id == SAI_NULL_OBJECT_ID ||
92-
fdb->fdb_entry.bv_id == SAI_NULL_OBJECT_ID)
91+
if ((fdb->fdb_entry.switch_id == SAI_NULL_OBJECT_ID ||
92+
fdb->fdb_entry.bv_id == SAI_NULL_OBJECT_ID) &&
93+
(fdb->event_type != SAI_FDB_EVENT_FLUSHED))
9394
{
9495
SWSS_LOG_WARN("skipped to put int db: %s", strFdbEntry.c_str());
9596
return;

0 commit comments

Comments
 (0)