]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Hash nexthops on onlink flag
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 10 Jul 2019 20:11:47 +0000 (20:11 +0000)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:41 +0000 (11:13 -0400)
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>
lib/nexthop.c

index cf5bed3d623a58ee24f799a1f1771988890ccd3e..e68e605a6f897b5bf8be9d3c0459b2f88ae43611 100644 (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;
 }