Lines Matching refs:NBUCKETS
74 #define NBUCKETS (65536) /* must be power of 2 */ macro
81 (NBUCKETS - 1))
87 (NBUCKETS - 1))
495 priv->hash = malloc(NBUCKETS * sizeof(struct flow_hash_entry), in ng_netflow_cache_init()
499 for (i = 0, hsh = priv->hash; i < NBUCKETS; i++, hsh++) { in ng_netflow_cache_init()
506 priv->hash6 = malloc(NBUCKETS * sizeof(struct flow_hash_entry), in ng_netflow_cache_init()
510 for (i = 0, hsh = priv->hash6; i < NBUCKETS; i++, hsh++) { in ng_netflow_cache_init()
586 for (hsh = priv->hash, i = 0; i < NBUCKETS; hsh++, i++) in ng_netflow_cache_flush()
593 for (hsh = priv->hash6, i = 0; i < NBUCKETS; hsh++, i++) in ng_netflow_cache_flush()
603 for (i = 0, hsh = priv->hash; i < NBUCKETS; i++, hsh++) in ng_netflow_cache_flush()
612 for (i = 0, hsh = priv->hash6; i < NBUCKETS; i++, hsh++) in ng_netflow_cache_flush()
918 if (i > NBUCKETS-1) in ng_netflow_flow_show()
947 for (; i < NBUCKETS; hsh++, i++) { in ng_netflow_flow_show()
1102 for (hsh = priv->hash, i = 0; i < NBUCKETS; hsh++, i++) { in ng_netflow_expire()
1121 if (used <= (NBUCKETS*2) && !INACTIVE(fle)) in ng_netflow_expire()
1125 (used > (NBUCKETS*2)))) || AGED(fle)) { in ng_netflow_expire()
1138 for (hsh = priv->hash6, i = 0; i < NBUCKETS; hsh++, i++) { in ng_netflow_expire()
1160 if (used <= (NBUCKETS*2) && !INACTIVE(fle6)) in ng_netflow_expire()
1164 (used > (NBUCKETS*2)))) || AGED(fle6)) { in ng_netflow_expire()