Searched refs:hash_alg (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/uts/common/inet/ilb/ |
H A D | ilb_alg_hash.c | 98 hash_t *hash_alg = (hash_t *)alg_data; in hash_lb() local 104 mutex_enter(&hash_alg->hash_lock); in hash_lb() 106 if (hash_alg->hash_servers == 0) { in hash_lb() 107 mutex_exit(&hash_alg->hash_lock); in hash_lb() 111 switch (hash_alg->hash_type) { in hash_lb() 113 HASH_IP_V6(i, saddr, hash_alg->hash_servers); in hash_lb() 116 HASH_IP_PORT_V6(i, saddr, sport, hash_alg->hash_servers); in hash_lb() 119 HASH_IP_VIP_V6(i, saddr, daddr, hash_alg->hash_servers); in hash_lb() 122 mutex_exit(&hash_alg->hash_lock); in hash_lb() 125 if (hash_alg->hash_tbl[i].enabled) { in hash_lb() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | modhash.c | 431 uint_t (*hash_alg)(void *, mod_hash_key_t), /* hash algorithm */ in mod_hash_create_extended() 437 ASSERT(hname && keycmp && hash_alg && vdtor && kdtor); in mod_hash_create_extended() 453 mod_hash->mh_hashalg = hash_alg; in mod_hash_create_extended()
|