V_spdcachehashtbl
V_spdcachehashtbl = hashinit(V_key_spdcache_maxentries /
while (!LIST_EMPTY(&V_spdcachehashtbl[i])) {
entry = LIST_FIRST(&V_spdcachehashtbl[i]);
hashdestroy(V_spdcachehashtbl, M_IPSEC_SPDCACHE, V_spdcachehash_mask);
LIST_FOREACH_SAFE(entry, &V_spdcachehashtbl[hashv], chain, tmpentry) {
LIST_INSERT_HEAD(&V_spdcachehashtbl[hashv], entry, chain);