Skip to content

Commit c0275ab

Browse files
committed
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 <sharpd@nvidia.com>
1 parent 6f0898f commit c0275ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

zebra/dplane_fpm_nl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,10 @@ static void fpm_read(struct thread *t)
604604
hdr, 0, false, ctx) != 1) {
605605
dplane_ctx_fini(&ctx);
606606
stream_pulldown(fnc->ibuf);
607-
return;
607+
/*
608+
* Let's continue to read other messages
609+
* Even if we ignore this one.
610+
*/
608611
}
609612
break;
610613
default:

0 commit comments

Comments
 (0)