]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Continue fpm_read when we decide a netlink message is not needed
authorDonald Sharp <sharpd@nvidia.com>
Tue, 10 Jan 2023 13:36:50 +0000 (08:36 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 10 Jan 2023 13:36:50 +0000 (08:36 -0500)
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 <sharpd@nvidia.com>
zebra/dplane_fpm_nl.c

index 8550d7e304692a97cac471e32673c72d4f7f1fbb..af75ddf74293a45b4caa5556537bb36accba98f8 100644 (file)
@@ -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: