From 89898dd36747cedab3420ef8d5f0982aef1477c4 Mon Sep 17 00:00:00 2001 From: 1002574903-ragilenetworks <1002574903@qq.com> Date: Mon, 15 Aug 2022 14:45:17 +0800 Subject: [PATCH 1/3] Update fdborch.cpp --- orchagent/fdborch.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/orchagent/fdborch.cpp b/orchagent/fdborch.cpp index 720d6c5c66..9c6cd77a86 100644 --- a/orchagent/fdborch.cpp +++ b/orchagent/fdborch.cpp @@ -543,6 +543,7 @@ void FdbOrch::update(sai_fdb_event_t type, case SAI_FDB_EVENT_MOVE: { Port port_old; + memset(&port_old, 0, sizeof(port_old)); auto existing_entry = m_entries.find(update.entry); SWSS_LOG_INFO("Received MOVE event for bvid=0x%" PRIx64 " mac=%s port=0x%" PRIx64, From cd0811bbafff3d6d1ea1b0161e742cde726a4ca3 Mon Sep 17 00:00:00 2001 From: 1002574903-ragilenetworks <1002574903@qq.com> Date: Mon, 15 Aug 2022 16:31:36 +0800 Subject: [PATCH 2/3] Update fdborch.cpp --- orchagent/fdborch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orchagent/fdborch.cpp b/orchagent/fdborch.cpp index 9c6cd77a86..8a224d9926 100644 --- a/orchagent/fdborch.cpp +++ b/orchagent/fdborch.cpp @@ -543,7 +543,8 @@ void FdbOrch::update(sai_fdb_event_t type, case SAI_FDB_EVENT_MOVE: { Port port_old; - memset(&port_old, 0, sizeof(port_old)); + port_old.m_alias = ""; + port_old.m_type = UNKNOWN; auto existing_entry = m_entries.find(update.entry); SWSS_LOG_INFO("Received MOVE event for bvid=0x%" PRIx64 " mac=%s port=0x%" PRIx64, From 5ac38c35df14869a4d7b3ea867537505e3b4fb4a Mon Sep 17 00:00:00 2001 From: 1002574903-ragilenetworks <1002574903@qq.com> Date: Mon, 15 Aug 2022 16:48:43 +0800 Subject: [PATCH 3/3] Update fdborch.cpp --- orchagent/fdborch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchagent/fdborch.cpp b/orchagent/fdborch.cpp index 8a224d9926..a69d739e40 100644 --- a/orchagent/fdborch.cpp +++ b/orchagent/fdborch.cpp @@ -544,7 +544,7 @@ void FdbOrch::update(sai_fdb_event_t type, { Port port_old; port_old.m_alias = ""; - port_old.m_type = UNKNOWN; + port_old.m_type = Port::UNKNOWN; auto existing_entry = m_entries.find(update.entry); SWSS_LOG_INFO("Received MOVE event for bvid=0x%" PRIx64 " mac=%s port=0x%" PRIx64,