summaryrefslogtreecommitdiff
path: root/lib/workqueue.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-07-24 10:13:32 -0400
committerDonald Sharp <sharpd@nvidia.com>2023-07-24 10:41:00 -0400
commit102bad0a9b65279358db787e2972a1711606d224 (patch)
tree2d22f8c67054be0c6e472ee580218d7a6254f03b /lib/workqueue.c
parent9e32b73634a8bbe893f2425ee89ee27651d93408 (diff)
bgpd: With io limit allow parsing to continue even if memory is low
Commit: a0b937de428e14e869b8541f0b7810113d619c2e Introduced the idea of a input Q packet limit. Say you read in 635000 bytes of data and the input Q is already at it's limit (currently 1000) then when bgp_process_reads runs it will assert because there is less then a BGP_MAX_PACKET_SIZE in ibuf_work. Don't assert as that it's irrelevant. Even if we can't read a full packet in let's let the whole system keep working as that as the input Q length comes down we will start pulling down the ibuf_work and it will be ok. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/workqueue.c')
0 files changed, 0 insertions, 0 deletions