Skip to content

Commit

Permalink
bgpd: Remove check for bgp pointer
Browse files Browse the repository at this point in the history
The check for an equivalent bgp pointer makes no sense
in the context of the workqueue as that we have a
work queue per bgp process, as such the bgp pointer
will always be the same as the pqnode.

Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Sep 11, 2024
1 parent 69b8857 commit 220b4ef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -4077,7 +4077,6 @@ static void bgp_process_internal(struct bgp *bgp, struct bgp_dest *dest,
pqnode = item->data;

if (CHECK_FLAG(pqnode->flags, BGP_PROCESS_QUEUE_EOIU_MARKER) ||
pqnode->bgp != bgp ||
(pqnode->queued >= ARBITRARY_PROCESS_QLEN && !early_process))
pqnode = bgp_processq_alloc(bgp);
else
Expand Down

0 comments on commit 220b4ef

Please sign in to comment.