Skip to content

Commit 4204822

Browse files
gongjianLhrlguohan
authored andcommitted
[macAging]:asic mac aging should trigger asicDB mac remove (sonic-net#210)
1 parent b18a915 commit 4204822

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

syncd/syncd_notifications.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,19 @@ void redisPutFdbEntryToAsicView(
9292
return;
9393
}
9494

95+
if ((fdb->event_type == SAI_FDB_EVENT_AGED)||(fdb->event_type == SAI_FDB_EVENT_FLUSHED))
96+
{
97+
if (fdb->event_type == SAI_FDB_EVENT_AGED)
98+
{
99+
SWSS_LOG_DEBUG("remove fdb entry %s for SAI_FDB_EVENT_AGED",key.c_str());
100+
}
101+
if (fdb->event_type == SAI_FDB_EVENT_FLUSHED)
102+
{
103+
SWSS_LOG_DEBUG("remove fdb entry %s for SAI_FDB_EVENT_FLUSHED",key.c_str());
104+
}
105+
g_redisClient->del(key);
106+
return;
107+
}
95108
for (const auto &e: entry)
96109
{
97110
const std::string &strField = fvField(e);

0 commit comments

Comments
 (0)