]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: ensure that bgp_generate_updgrp_packets shares nicely 18689/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 18 Apr 2025 17:50:33 +0000 (13:50 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 18 Apr 2025 17:50:33 +0000 (13:50 -0400)
commit681caee9442fc20e97dca40c430004ce16bedb32
tree0a60b7a6750fd3b9681ecb5590c28eb20109dc0c
parent0850ae7db7257a4db19b072a9c6b28b8ff9f9605
bgpd: ensure that bgp_generate_updgrp_packets shares nicely

The bgp_generate_updgrp_packet function will attempt to write
up to `write quanta 64` packets at one time.  This is extremely
expensive at scale and is causing CPU_HOGS as well as STARVATION
messages.  Check to see if we should yield the CPU to allow
something else in BGP to continue working.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_packet.c