diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-10-30 11:14:56 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-10-31 10:35:00 -0400 |
| commit | d9fd4901f0295d65ffdebb189d92a7d24e7d5e6f (patch) | |
| tree | 304d62c93f0e2cf392cf98a70b456c773ef07edf /python/makefile.py | |
| parent | 852e6c327dcaea1b73a5f703646edb5685dac204 (diff) | |
bgpd: Only set bgp_labels in bgp_update if we have num_labels
In the interest of speeding up code, there is no point in
attempting to see if a label is usable if the number of labels
passed in is 0. Since that is a much much quicker test than
the bgp_is_valid_label() call, let's test that first.
Additionally, there is no point in walking the label[] array
passed in unless we are in the if statement, so move it inside.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'python/makefile.py')
0 files changed, 0 insertions, 0 deletions
