diff options
| author | Mark Stapp <mstapp@nvidia.com> | 2022-09-08 16:14:36 -0400 |
|---|---|---|
| committer | Mark Stapp <mstapp@nvidia.com> | 2022-09-08 16:14:36 -0400 |
| commit | 71ca5b09bc71e8cbe38177cf41e83fe164e52eee (patch) | |
| tree | 6054107cfceedf85e87031ffb3d80c6469a0c6cf /lib/routemap.c | |
| parent | 6a26823c880cca9e2bd42e1660692a2bbc3c69c6 (diff) | |
bgpd: avoid notify race between io and main pthreads
The "bgp_notify_" apis in bgp_packet.c generate a notification
to a peer, usually during error handling. The io pthread wants
to send notifications in a couple of cases during early
received-packet validation - but the existing api interacts
with the peer struct itself, and that's not safe.
Add a new api for use by the io pthread, and adjust the main
notify api so that it can avoid touching the peer struct.
Signed-off-by: Mark Stapp <mstapp@nvidia.com>
Diffstat (limited to 'lib/routemap.c')
0 files changed, 0 insertions, 0 deletions
