]> git.proxmox.com Git - mirror_frr.git/commit
zebra: Allow *BSD to specify a receive buffer size
authorDonald Sharp <sharpd@nvidia.com>
Sat, 26 Feb 2022 20:40:15 +0000 (15:40 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Sun, 27 Feb 2022 12:47:58 +0000 (07:47 -0500)
commit9fb83b55066e5cafa344d6a049e363fb631683f6
tree5e9772ad29342ad23d8d9862430229f002cbe74f
parentfe972cbfd4973e1156f317c2425af8199892a01b
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>
zebra/kernel_netlink.c
zebra/kernel_socket.c
zebra/main.c
zebra/zebra_router.h