Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fdbsyncd/fdbsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ void FdbSync::macDelVxlan(string key)
macDelVxlanDB(key);
m_mac.erase(key);
} else {
SWSS_LOG_ERROR("DEL_KEY %s entry doesn't exist", key.c_str());
SWSS_LOG_DEBUG("DEL_KEY %s ignored; entry is not present in VXLAN FDB cache", key.c_str());
}
}

Expand Down
6 changes: 5 additions & 1 deletion tests/mock_tests/fdbsyncd/fdbsyncd_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1554,8 +1554,12 @@ TEST_F(FdbSyncdEvpnMhTest, TestMacDelVxlan)

// Now call macDelVxlan which should find and process the entry
m_mockFdbSync.macDelVxlan(key);
ASSERT_EQ(0u, m_mockFdbSync.m_mac.count(key));

// A later kernel delete for the same VXLAN FDB entry is expected after a local MAC wins.
m_mockFdbSync.macDelVxlan(key);
ASSERT_EQ(0u, m_mockFdbSync.m_mac.count(key));

ASSERT_TRUE(true);
}

TEST_F(FdbSyncdEvpnMhTest, TestMacDelVxlanEntryNHG)
Expand Down
Loading