]> git.puffer.fish Git - mirror/frr.git/commit
bgpd, lib: Indicate when we are buffering instead of immediately sending down ZAPI
authorDonald Sharp <sharpd@nvidia.com>
Mon, 12 Oct 2020 13:51:09 +0000 (09:51 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Sun, 15 Nov 2020 19:50:17 +0000 (14:50 -0500)
commitdb71415b416da56a3b6ab5052f99b7f7c3079d97
tree99c2a7094f01788280078b4d3a0add56cd81d6fb
parent32f7e999f2b0b14497c21431ede20a2a867367d8
bgpd, lib: Indicate when we are buffering instead of immediately sending down ZAPI

When FRR sends data over the ZAPI protocol from the upper levels to zebra, indicate
to the calling functions that we have started buffering data to be sent if the
socket is full underneath it.

Also add a call back function `zebra_buffer_write_ready` that we can call
when an upper level protocol's socket buffer has been drained.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_zebra.c
lib/zclient.c
lib/zclient.h