Re: [PATCH net-next] net: prestera: flower: fix destroy tmpl in chain

From: Jakub Kicinski
Date: Thu Feb 17 2022 - 23:51:55 EST


On Wed, 16 Feb 2022 16:43:44 +0200 Volodymyr Mytnyk wrote:
> + list_for_each_safe(pos, n, &block->template_list) {
> + template = list_entry(pos, typeof(*template), list);

nit: list_for_each_entry_safe()

> + if (template->chain_index == f->common.chain_index) {
> + /* put the reference to the ruleset kept in create */
> + prestera_flower_template_free(template);
> + return;
> + }
> + }