]> git.puffer.fish Git - mirror/frr.git/commit
zebra: optimize the RIB get_next() callback
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 19 May 2020 02:26:53 +0000 (23:26 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 16 May 2020 02:47:43 +0000 (23:47 -0300)
commit78769ea20595351136cff1fcf3ce0448b0cd4e21
treec45a3c8b6bbe1132c029273a66be0d1a088331cf
parent9b4d578f4118ef85ddb1afc5d01ddbcec7e3cce1
zebra: optimize the RIB get_next() callback

When fetching the next route node in the RIB, skip the empty ones
to avoid calling other northbound callbacks later unnecessarily.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ripd/rip_nb_state.c
ripngd/ripng_nb_state.c
zebra/zebra_nb_state.c