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:
Stephen Worley 2019-07-10 20:11:47 +00:00
parent 8a507796fc
commit a7df4ccf0e

View File

@ -421,6 +421,9 @@ uint32_t nexthop_hash(const struct nexthop *nexthop)
case NEXTHOP_TYPE_IPV6:
break;
}
key = jhash_1word(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ONLINK), key);
return key;
}