]> git.ipfire.org Git - thirdparty/lldpd.git/commit
daemon: config netlink socket buf sizes at build time
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 12 Jan 2017 12:46:05 +0000 (14:46 +0200)
committerVincent Bernat <vincent@bernat.im>
Sat, 14 Jan 2017 09:53:23 +0000 (10:53 +0100)
commitc9f0ee58bf7f21ac9e27b1bd3e1ae349e09ab207
tree57774fdecd4a2763bfd0910d74f0d97ebfd82173
parent36d0c286ecb38a8168cd1bf65bcc214dd19206da
daemon: config netlink socket buf sizes at build time

I admit it would be nicer to have this configurable at run-time
or better yet, introduce a mechanism for recovering from
overrun situations via polling.

We're starting to see in certain situations that on devices
with many ports (i.e. switches with around ~50 ports) lldpd
info is not always consistent.

I'm not entirely sure that the issue is with netlink
sock buffer sizes.

But we've also recentl addressed some issues for the mstpd
daemon with netlink sock buffer sizes.
So, I'm tempted to think that it's the same issue.

We [especially I] prefer to bump sock buffer sizes where needed
and not via sysctl `net.core.rmem_default` & `net.core.wmem_default`.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
src/daemon/netlink.c