Home
last modified time | relevance | path

Searched refs:old_rules (Results 1 – 1 of 1) sorted by relevance

/linux/net/netfilter/
H A Dnft_set_pipapo.c636 unsigned int old_rules, unsigned int rules) in pipapo_realloc_mt() argument
648 if (rules > old_rules && f->rules_alloc > rules) in pipapo_realloc_mt()
652 if (rules < old_rules) { in pipapo_realloc_mt()
671 memcpy(new_mt, old_mt, min(old_rules, rules) * sizeof(*new_mt)); in pipapo_realloc_mt()
673 if (rules > old_rules) { in pipapo_realloc_mt()
674 memset(new_mt + old_rules, 0, in pipapo_realloc_mt()
675 (rules - old_rules) * sizeof(*new_mt)); in pipapo_realloc_mt()
699 unsigned int old_rules, unsigned int rules) in pipapo_resize() argument
746 err = pipapo_realloc_mt(f, old_rules, rules); in pipapo_resize()