mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-24 08:54:23 +00:00
zebra: Remove debugs for retrieving a new nhg id
This is not complicated code and if zebra is allocating a new one. Zebra does not need to inform the operator about the process during debugs. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
7a3b6498fc
commit
827fb64ecb
@ -72,25 +72,13 @@ static uint32_t nhg_get_next_id(void)
|
|||||||
while (1) {
|
while (1) {
|
||||||
id_counter++;
|
id_counter++;
|
||||||
|
|
||||||
if (IS_ZEBRA_DEBUG_NHG_DETAIL)
|
|
||||||
zlog_debug("%s: ID %u checking", __func__, id_counter);
|
|
||||||
|
|
||||||
if (id_counter == ZEBRA_NHG_PROTO_LOWER) {
|
if (id_counter == ZEBRA_NHG_PROTO_LOWER) {
|
||||||
if (IS_ZEBRA_DEBUG_NHG_DETAIL)
|
|
||||||
zlog_debug("%s: ID counter wrapped", __func__);
|
|
||||||
|
|
||||||
id_counter = 0;
|
id_counter = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zebra_nhg_lookup_id(id_counter)) {
|
if (!zebra_nhg_lookup_id(id_counter))
|
||||||
if (IS_ZEBRA_DEBUG_NHG_DETAIL)
|
break;
|
||||||
zlog_debug("%s: ID already exists", __func__);
|
|
||||||
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return id_counter;
|
return id_counter;
|
||||||
|
Loading…
Reference in New Issue
Block a user