From 0be8b8b757e40ac9f66e8175a2f978a8cba312ac Mon Sep 17 00:00:00 2001 From: lguohan Date: Mon, 13 Nov 2017 09:01:05 -0800 Subject: [PATCH] [bug]: do not enumerate all ports in portsyncd init (#380) portsyncd enumerate all ports in initialization phase via netlink. which is not neccessary by design. portsyncd is supposed to read the port_config.ini and translate them into appdb, and then once all ports are created, it sets PortInitDone. enumerating all ports in the initialization causes issue in swss restart. When swss restarts, the old ports are still here which triggers portsyncd to set PortInitDone falsely. --- portsyncd/portsyncd.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/portsyncd/portsyncd.cpp b/portsyncd/portsyncd.cpp index 7072a1ef82db..1a07e4f8a972 100644 --- a/portsyncd/portsyncd.cpp +++ b/portsyncd/portsyncd.cpp @@ -84,7 +84,6 @@ int main(int argc, char **argv) netlink.registerGroup(RTNLGRP_LINK); cout << "Listen to link messages..." << endl; - netlink.dumpRequest(RTM_GETLINK); handlePortConfigFile(p, port_config_file);