Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LLDP netlink buffer size issue #1909

Merged
merged 1 commit into from
Aug 10, 2018

Conversation

zhenggen-xu
Copy link
Collaborator

LLDP is misbehaving if netlink messages were lost due to timing/buffer size 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

- What I did
Fix the llpd netlink buffer size issue

- How I did it
Upgrade lldp to 0.9.6
Increase the netlink receive buffer size to 1MB.

- How to verify it
Before fix, if I repeat doing "service swss restart", I could see the interfaces numbers from "lldpcli show statistics" sometimes do not match the expected one, it can be reproduced very often (one out of a few of times).

After fix, tried "service swss restart" 100+ times, no mismatch were noticed.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

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
@lguohan lguohan merged commit 3c3c19e into sonic-net:master Aug 10, 2018
@zhenggen-xu zhenggen-xu deleted the github-fork-lldp-netlink branch June 7, 2019 19:34
volodymyrsamotiy added a commit to volodymyrsamotiy/sonic-buildimage that referenced this pull request Sep 16, 2021
* c3691d3 [202012][pfcwd] Convert polling interval from ms to us in LUA scripts (sonic-net#1909)
* 549c804 Mux state order change (sonic-net#1902)
* 6b0b2c4 Update acl type check logic (sonic-net#1886)

Signed-off-by: Volodymyr Samotiy <[email protected]>
prsunny pushed a commit that referenced this pull request Sep 16, 2021
* c3691d3 [202012][pfcwd] Convert polling interval from ms to us in LUA scripts (#1909)
* 549c804 Mux state order change (#1902)
* 6b0b2c4 Update acl type check logic (#1886)

Signed-off-by: Volodymyr Samotiy <[email protected]>
judyjoseph added a commit that referenced this pull request Nov 3, 2021
57de13b [config] fix interface IPv6 address removal. (#1819) (#1909)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants