From c104f2c9434c98e9f63e648d69c8e7e04b597ae5 Mon Sep 17 00:00:00 2001 From: Zhenggen Xu Date: Tue, 7 Aug 2018 16:17:36 -0700 Subject: [PATCH] LLDP is misbehaving if netlink messages were lost due to timing issue. The behavior could be that we are sending LLDP message but not using lldpcli configured properties if netlink delete messages were lost. It also could be that some interfaces do not sending messages at all. "lldpcli show statistics" could see duplicated or missing interfaces. Changes: Upgrade lldpd to 0.9.6 (which introduced the adjustable netlink buffer size) Change the netlink receive buffer size to 1MB --- rules/lldpd.mk | 2 +- src/lldpd/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/lldpd.mk b/rules/lldpd.mk index 10f3a200fc94..0e0d13721f83 100644 --- a/rules/lldpd.mk +++ b/rules/lldpd.mk @@ -1,6 +1,6 @@ # lldpd package -LLDPD_VERSION = 0.9.5 +LLDPD_VERSION = 0.9.6 LLDPD = lldpd_$(LLDPD_VERSION)-0_amd64.deb $(LLDPD)_DEPENDS += $(LIBSNMP_DEV) diff --git a/src/lldpd/Makefile b/src/lldpd/Makefile index c34062505d4e..5f502b86863c 100644 --- a/src/lldpd/Makefile +++ b/src/lldpd/Makefile @@ -23,7 +23,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : stg import -s ../patch/series # Build source and Debian packages - dpkg-buildpackage -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) + env "with_netlink_receive_bufsize=1024*1024" dpkg-buildpackage -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) popd # Move the newly-built .deb packages to the destination directory