]> git.proxmox.com Git - mirror_frr.git/commit - zebra/rt.h
zebra: Add one-shot thread to recheck speed
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 11 Jan 2018 00:01:57 +0000 (19:01 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 11 Jan 2018 14:52:34 +0000 (09:52 -0500)
commitdc7b3caefbd8baccb7fc3787a774e78d1a96636f
tree4e3f84078ba581eba5b1fd3c42b2a6c4008e6f38
parentc1240044fbf081bb7407b1449d3954e4b63fec9f
zebra: Add one-shot thread to recheck speed

There are certain interfaces that when brought up and we receive
the netlink notification about it, the speed of the interface is
not set correctly.  This creates a one-shot thread that will
wait 15 seconds and then requery the speed and if it is different
it will renotify the running daemons.

The kernel should notify us on speed changes, unfortunately this
is not done currently via a netlink message as you would think.
As I understand it there is some in-fighting about the proper
way to approach this issue and due to the way the kernel release
cycle works we are a ways off from getting this fixed.  This
is a `hack` to make us work correctly while we wait for the
true answer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/if_netlink.c
zebra/interface.c
zebra/interface.h
zebra/rt.h
zebra/rt_socket.c