Searched refs:new_mt (Results 1 – 1 of 1) sorted by relevance
624 union nft_pipapo_map_bucket *new_mt = NULL, *old_mt = f->mt; in pipapo_realloc_mt() local625 const unsigned int extra = PAGE_SIZE / sizeof(*new_mt); in pipapo_realloc_mt()652 if (rules_alloc > (INT_MAX / sizeof(*new_mt))) in pipapo_realloc_mt()655 new_mt = kvmalloc_objs(*new_mt, rules_alloc, GFP_KERNEL_ACCOUNT); in pipapo_realloc_mt()656 if (!new_mt) in pipapo_realloc_mt()660 memcpy(new_mt, old_mt, min(old_rules, rules) * sizeof(*new_mt)); in pipapo_realloc_mt()663 memset(new_mt + old_rules, 0, in pipapo_realloc_mt()664 (rules - old_rules) * sizeof(*new_mt)); in pipapo_realloc_mt()668 f->mt = new_mt; in pipapo_realloc_mt()