diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-09-07 09:46:06 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-09-09 16:28:05 -0400 |
| commit | 4aec430ce30fc63b6da8f4fa0223e58322989274 (patch) | |
| tree | 07e9255425573d5fe098caead6be0579b06ad971 /bgpd/bgpd.c | |
| parent | bee4e27e78506638a32b0beac0bb1daad4d14a44 (diff) | |
bgpd: Remove BGP_EVENT_FLUSH and just use event_cancel_event_ready
The usage of BGP_EVENT_FLUSH is unnecessarily abstracting the
call into event_cancel_event_ready and in addtion the macro
was not always being used! Just convert to using the actual
event_cancel_event_ready function directly.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgpd.c')
| -rw-r--r-- | bgpd/bgpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 60b394b697..29ecab5dd4 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -1212,7 +1212,7 @@ static void peer_free(struct peer *peer) EVENT_OFF(peer->t_revalidate_all[afi][safi]); assert(!peer->connection->t_write); assert(!peer->connection->t_read); - BGP_EVENT_FLUSH(peer); + event_cancel_event_ready(bm->master, peer); /* Free connected nexthop, if present */ if (CHECK_FLAG(peer->flags, PEER_FLAG_CONFIG_NODE) |
