uint32_t cnt = defrag_config.hash_size;
while (cnt--) {
- if (idx++ >= defrag_config.hash_size)
+ if (++idx >= defrag_config.hash_size)
idx = 0;
DefragTrackerHashRow *hb = &defragtracker_hash[idx];
uint32_t cnt = flow_config.hash_size;
while (cnt--) {
- if (idx++ >= flow_config.hash_size)
+ if (++idx >= flow_config.hash_size)
idx = 0;
FlowBucket *fb = &flow_hash[idx];
uint32_t cnt = host_config.hash_size;
while (cnt--) {
- if (idx++ >= host_config.hash_size)
+ if (++idx >= host_config.hash_size)
idx = 0;
HostHashRow *hb = &host_hash[idx];