From b0dd98e79854d27595390946166503064ccd7d4f Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Wed, 7 Feb 2018 16:26:25 -0200 Subject: [PATCH] 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 --- isisd/isis_circuit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c index 0b7dc86ad6..95e02f8691 100644 --- a/isisd/isis_circuit.c +++ b/isisd/isis_circuit.c @@ -554,7 +554,7 @@ void isis_circuit_stream(struct isis_circuit *circuit, struct stream **stream) void isis_circuit_prepare(struct isis_circuit *circuit) { -#ifdef GNU_LINUX +#if ISIS_METHOD != ISIS_METHOD_DLPI thread_add_read(master, isis_receive, circuit, circuit->fd, &circuit->t_read); #else -- 2.39.5