summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-08-10 05:01:32 +0200
committerDonald Sharp <sharpd@nvidia.com>2023-08-18 15:29:04 +0200
commit5d527567357ed859eeb01062777f2c313ee08da2 (patch)
treecb7cfde3b7a16edf4deb69b602655041744dfc4a /bgpd/bgp_fsm.c
parentbgpd: Move status and ostatus to `struct peer_connection` (diff)
downloadfrr-5d527567357ed859eeb01062777f2c313ee08da2.tar.xz
frr-5d527567357ed859eeb01062777f2c313ee08da2.zip
bgpd: Move t_process_packet and t_process_packet_error to connection
The t_process_packet thread events should be managed by the connection. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index b951ada19..41d386eba 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -172,7 +172,7 @@ static struct peer *peer_xfer_conn(struct peer *from_peer)
EVENT_OFF(from_peer->t_delayopen);
EVENT_OFF(from_peer->t_connect_check_r);
EVENT_OFF(from_peer->t_connect_check_w);
- EVENT_OFF(from_peer->t_process_packet);
+ EVENT_OFF(from_peer->connection.t_process_packet);
/*
* At this point in time, it is possible that there are packets pending
@@ -341,7 +341,7 @@ static struct peer *peer_xfer_conn(struct peer *from_peer)
bgp_reads_on(&peer->connection);
bgp_writes_on(&peer->connection);
event_add_event(bm->master, bgp_process_packet, &peer->connection, 0,
- &peer->t_process_packet);
+ &peer->connection.t_process_packet);
return (peer);
}