Lines Matching defs:hash
458 unsigned int hash;
462 hash = nh_dev_hashfn(dev->ifindex);
463 head = &net->nexthop.devhash[hash];
1169 static struct nexthop *nexthop_select_path_fdb(struct nh_group *nhg, int hash)
1176 if (hash > atomic_read(&nhge->hthr.upper_bound))
1186 static struct nexthop *nexthop_select_path_hthr(struct nh_group *nhg, int hash)
1192 return nexthop_select_path_fdb(nhg, hash);
1206 if (hash > atomic_read(&nhge->hthr.upper_bound))
1215 static struct nexthop *nexthop_select_path_res(struct nh_group *nhg, int hash)
1218 u16 bucket_index = hash % res_table->num_nh_buckets;
1231 struct nexthop *nexthop_select_path(struct nexthop *nh, int hash)
1240 return nexthop_select_path_hthr(nhg, hash);
1242 return nexthop_select_path_res(nhg, hash);
1720 * hash table with 0 buckets, because the number of buckets was not
2376 /* The initial insertion is a full notification for hash-threshold as
2399 unsigned int hash = nh_dev_hashfn(dev->ifindex);
2401 struct hlist_head *head = &net->nexthop.devhash[hash];
2650 /* add the entry to the device based hash */
3553 unsigned int hash = nh_dev_hashfn(dev->ifindex);
3555 struct hlist_head *head = &net->nexthop.devhash[hash];