Home
last modified time | relevance | path

Searched refs:affinity_hash (Results 1 – 5 of 5) sorted by relevance

/third_party/nghttp2/src/
Dshrpx_client_handler.cc890 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 …]
Dshrpx_worker.h138 uint32_t affinity_hash; member
220 std::vector<AffinityHash> affinity_hash; member
Dshrpx_worker.cc293 shared_addr->affinity_hash = src.affinity_hash; in replace_downstream_config()
313 dst_addr.affinity_hash = src_addr.affinity_hash; in replace_downstream_config()
Dshrpx_config.h547 uint32_t affinity_hash; member
587 std::vector<AffinityHash> affinity_hash; member
Dshrpx_config.cc4605 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()