From 3c3c19e600e05a775ca72eaea0f92b3cd7dea65d Mon Sep 17 00:00:00 2001 From: zhenggen-xu Date: Thu, 9 Aug 2018 23:58:30 -0700 Subject: [PATCH] [lldp]: LLDP is misbehaving if netlink messages were lost due to timing issue. (#1909) 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 10f3a200fc..0e0d13721f 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 c34062505d..5f502b8686 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