]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Remove unnecessary check for pi and setting type and sub-type 12073/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 7 Oct 2022 00:17:26 +0000 (20:17 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 7 Oct 2022 00:17:26 +0000 (20:17 -0400)
commit860ad3f91ea132b74228d328c88e1b3912792857
tree91f91be8d66d3e94ee0be18981ae58e9758f322b
parenta00621d8b90cb1ddb91557f778c56b89a0b6e1ac
bgpd: Remove unnecessary check for pi and setting type and sub-type

There is code that sets the pi based upon matching it against
the same peer.  In this code the type and sub-type are also
compared to the passed in type and sub-type.  Let's just use
type and sub-type as that if we have a pi we know type and sub-type
are already correct.  This should also make the first iteration
work correctly when the pi has not been created yet when we call
the martian_update function.bgpd: Remove unnecessary check for pi and setting type and sub-type

There is code that sets the pi based upon matching it against
the same peer.  In this code the type and sub-type are also
compared to the passed in type and sub-type.  Let's just use
type and sub-type as that if we have a pi we know type and sub-type
are already correct.  This should also make the first iteration
work correctly when the pi has not been created yet when we call
the martian_update function.

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