From: Donald Sharp Date: Tue, 10 Jan 2023 13:36:50 +0000 (-0500) Subject: zebra: Continue fpm_read when we decide a netlink message is not needed X-Git-Tag: base_8.5~89^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c0275ab189d619c2f688a383e5e83183f02eaf6f;p=matthieu%2Ffrr.git zebra: Continue fpm_read when we decide a netlink message is not needed When FRR receives a netlink message that it decides to stop parsing it returns a 0 ( instead of a -1 ). Just make the dplane continue reading other data instead of aborting the read. Signed-off-by: Donald Sharp --- diff --git a/zebra/dplane_fpm_nl.c b/zebra/dplane_fpm_nl.c index 8550d7e304..af75ddf742 100644 --- a/zebra/dplane_fpm_nl.c +++ b/zebra/dplane_fpm_nl.c @@ -604,7 +604,10 @@ static void fpm_read(struct thread *t) hdr, 0, false, ctx) != 1) { dplane_ctx_fini(&ctx); stream_pulldown(fnc->ibuf); - return; + /* + * Let's continue to read other messages + * Even if we ignore this one. + */ } break; default: