Lines Matching defs:hash

116  * mfctable is a fixed size hash table of mfc buckets strcuts (struct mfcb).
125 * When the last walker of the hash bucket exits all the mfc structs
1339 /* Insert new entry at head of hash chain */
1395 * go thorugh the hash bucket and free all the entries marked condemned.
1439 uint_t hash;
1444 hash = MFCHASH(origin.s_addr, mcastgrp.s_addr);
1453 MFCB_REFHOLD(&ipst->ips_mfcs[hash]);
1456 for (rt = ipst->ips_mfcs[hash].mfcb_mfc; rt; rt = rt->mfc_next) {
1471 MFCB_REFRELE(&ipst->ips_mfcs[hash]);
1479 ipst->ips_mfcs[hash].mfcb_marks |= MFCB_MARK_CONDEMNED;
1485 * since we have a ref on the hash bucket.
1502 MFCB_REFRELE(&ipst->ips_mfcs[hash]);
1668 uint_t hash;
1687 hash = MFCHASH(src, dst);
1688 mutex_enter(&(ipst->ips_mfcs[hash].mfcb_lock));
1700 for (mfc_rt = ipst->ips_mfcs[hash].mfcb_mfc; mfc_rt;
1706 "ip_mforward: MFCTAB hash %d o 0x%x"
1708 hash, ntohl(mfc_rt->mfc_origin.s_addr),
1792 * resources! Insert new entry at head of hash chain.
1808 "ip_mforward: NEW MFCTAB hash %d o 0x%x "
1809 "g 0x%x\n", hash,
1813 mfc_rt->mfc_next = ipst->ips_mfcs[hash].mfcb_mfc;
1814 ipst->ips_mfcs[hash].mfcb_mfc = mfc_rt;
1870 mutex_exit(&(ipst->ips_mfcs[hash].mfcb_lock));
1878 mutex_exit(&(ipst->ips_mfcs[hash].mfcb_lock));
1891 mutex_exit(&(ipst->ips_mfcs[hash].mfcb_lock));
1916 uint_t hash;
1928 hash = MFCHASH(mfc_rt->mfc_origin.s_addr, mfc_rt->mfc_mcastgrp.s_addr);
1931 "expire_upcalls: hash %d s %x g %x",
1932 hash, ntohl(mfc_rt->mfc_origin.s_addr),
1935 MFCB_REFHOLD(&ipst->ips_mfcs[hash]);
1947 for (prev_mfc = mfc0 = ipst->ips_mfcs[hash].mfcb_mfc; mfc0;
1959 ipst->ips_mfcs[hash].mfcb_marks |= MFCB_MARK_CONDEMNED;
1968 MFCB_REFRELE(&ipst->ips_mfcs[hash]);
2794 * we have a ref on the hash
3364 /* Loop over all hash buckets and their chains */