Searched refs:affinity_hash (Results 1 – 5 of 5) sorted by relevance
/third_party/nghttp2/src/ |
D | shrpx_client_handler.cc | 890 const auto &affinity_hash = shared_addr->affinity_hash; in get_downstream_addr() local 893 std::begin(affinity_hash), std::end(affinity_hash), hash, in get_downstream_addr() 896 if (it == std::end(affinity_hash)) { in get_downstream_addr() 897 it = std::begin(affinity_hash); in get_downstream_addr() 901 static_cast<size_t>(std::distance(std::begin(affinity_hash), it)); in get_downstream_addr() 908 if (i == shared_addr->affinity_hash.size()) { in get_downstream_addr() 911 addr = &shared_addr->addrs[shared_addr->affinity_hash[i].idx]; in get_downstream_addr() 963 const auto &affinity_hash = shared_addr->affinity_hash; in get_downstream_addr_strict_affinity() local 987 std::begin(affinity_hash), std::end(affinity_hash), h, in get_downstream_addr_strict_affinity() 990 if (it == std::end(affinity_hash)) { in get_downstream_addr_strict_affinity() [all …]
|
D | shrpx_worker.h | 138 uint32_t affinity_hash; member 220 std::vector<AffinityHash> affinity_hash; member
|
D | shrpx_worker.cc | 293 shared_addr->affinity_hash = src.affinity_hash; in replace_downstream_config() 313 dst_addr.affinity_hash = src_addr.affinity_hash; in replace_downstream_config()
|
D | shrpx_config.h | 547 uint32_t affinity_hash; member 587 std::vector<AffinityHash> affinity_hash; member
|
D | shrpx_config.cc | 4605 rv = compute_affinity_hash(g.affinity_hash, idx, key); in configure_downstream_group() 4612 addr.affinity_hash = util::hash32(key); in configure_downstream_group() 4613 g.affinity_hash_map.emplace(addr.affinity_hash, idx); in configure_downstream_group() 4619 std::sort(std::begin(g.affinity_hash), std::end(g.affinity_hash), in configure_downstream_group()
|