mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
lib: Hash nexthops on onlink flag
We should hash nexthops on the onlink flag since that is a descriptor of the nexthop and not a status of it. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
8a507796fc
commit
a7df4ccf0e
@ -421,6 +421,9 @@ uint32_t nexthop_hash(const struct nexthop *nexthop)
|
|||||||
case NEXTHOP_TYPE_IPV6:
|
case NEXTHOP_TYPE_IPV6:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
key = jhash_1word(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ONLINK), key);
|
||||||
|
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user