summaryrefslogtreecommitdiff
path: root/pceplib/pcep_utils_queue.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-10-06 20:17:26 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-10-06 20:17:26 -0400
commit860ad3f91ea132b74228d328c88e1b3912792857 (patch)
tree91f91be8d66d3e94ee0be18981ae58e9758f322b /pceplib/pcep_utils_queue.c
parenta00621d8b90cb1ddb91557f778c56b89a0b6e1ac (diff)
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>
Diffstat (limited to 'pceplib/pcep_utils_queue.c')
0 files changed, 0 insertions, 0 deletions