diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-02-26 15:40:15 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-02-27 07:47:58 -0500 | 
| commit | 9fb83b55066e5cafa344d6a049e363fb631683f6 (patch) | |
| tree | 5e9772ad29342ad23d8d9862430229f002cbe74f /zebra/zebra_router.h | |
| parent | fe972cbfd4973e1156f317c2425af8199892a01b (diff) | |
zebra: Allow *BSD to specify a receive buffer size
End operator is reporting that they are receiving buffer overruns
when attempting to read from the kernel receive socket.  It is
possible to adjust this size to more modern levels especially
for when the system is under load.  Modify the code base
so that *BSD operators can use the zebra `-s XXX` option
to specify a read buffer.
Additionally setup the default receive buffer size on *BSD
to be 128k instead of the 8k so that FRR does not run into
this issue again.
Fixes: #10666
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_router.h')
| -rw-r--r-- | zebra/zebra_router.h | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_router.h b/zebra/zebra_router.h index dafe925c26..63a61d5293 100644 --- a/zebra/zebra_router.h +++ b/zebra/zebra_router.h @@ -216,6 +216,7 @@ struct zebra_router {  #define GRACEFUL_RESTART_TIME 60  extern struct zebra_router zrouter; +extern uint32_t rcvbufsize;  extern void zebra_router_init(bool asic_offload, bool notify_on_ack);  extern void zebra_router_cleanup(void);  | 
