]> git.proxmox.com Git - mirror_frr.git/commit - isisd/isis_circuit.c
isis: use descriptor polling instead of time
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 7 Feb 2018 18:26:25 +0000 (16:26 -0200)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 7 Feb 2018 18:36:05 +0000 (16:36 -0200)
commitb0dd98e79854d27595390946166503064ccd7d4f
treec4f7f1ec344a7f16d0e343d869195f775ccc6b8d
parent75e5d6feefc11e7e67d0463fbacc4aa528916b9b
isis: use descriptor polling instead of time

Allow other supported Operating Systems (OS) to use file descriptor
polling, instead of doing timed fd checks. This should improve
performance greatly on modern OSes (e.g. that support polling on
filtered sockets).

The known OS that doesn't support this is FreeBSD < 5.0, but even then
FRR doesn't compile in these versions. OSes using DLPI method (e.g
Solaris) does not support select()/poll()ing fds as well, so it will be
disabled for it.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
isisd/isis_circuit.c