Lines Matching refs:hash
473 unsigned int hash;
477 hash = nh_dev_hashfn(dev->ifindex);
478 head = &net->nexthop.devhash[hash];
1388 static struct nexthop *nexthop_select_path_fdb(struct nh_group *nhg, int hash)
1395 if (hash > atomic_read(&nhge->hthr.upper_bound))
1406 static struct nexthop *nexthop_select_path_hthr(struct nh_group *nhg, int hash)
1412 return nexthop_select_path_fdb(nhg, hash);
1426 if (hash > atomic_read(&nhge->hthr.upper_bound))
1439 static struct nexthop *nexthop_select_path_res(struct nh_group *nhg, int hash)
1442 u16 bucket_index = hash % res_table->num_nh_buckets;
1456 struct nexthop *nexthop_select_path(struct nexthop *nh, int hash)
1465 return nexthop_select_path_hthr(nhg, hash);
1467 return nexthop_select_path_res(nhg, hash);
1945 * hash table with 0 buckets, because the number of buckets was not
2603 /* The initial insertion is a full notification for hash-threshold as
2626 unsigned int hash = nh_dev_hashfn(dev->ifindex);
2628 struct hlist_head *head = &net->nexthop.devhash[hash];
2888 /* add the entry to the device based hash */
3802 unsigned int hash = nh_dev_hashfn(dev->ifindex);
3804 struct hlist_head *head = &net->nexthop.devhash[hash];