Re: [PATCH 12/12] netfilter: nf_flow_table: track flow tables in nf_flow_table directly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 20, 2018 at 03:49:54PM +0100, Felix Fietkau wrote:
> Avoids having nf_flow_table depend on nftables (useful for future
> iptables backport work)
> 
> Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>
> ---
>  include/net/netfilter/nf_flow_table.h |  1 +
>  include/net/netfilter/nf_tables.h     |  3 ---
>  net/netfilter/nf_flow_table_core.c    | 21 ++++++++++++++++++---
>  net/netfilter/nf_tables_api.c         | 17 -----------------
>  4 files changed, 19 insertions(+), 23 deletions(-)
> 
> diff --git a/include/net/netfilter/nf_flow_table.h b/include/net/netfilter/nf_flow_table.h
> index f876e32a60b8..ab408adba688 100644
> --- a/include/net/netfilter/nf_flow_table.h
> +++ b/include/net/netfilter/nf_flow_table.h
> @@ -21,6 +21,7 @@ struct nf_flowtable_type {
>  };
>  
>  struct nf_flowtable {
> +	struct list_head		list;

After this we have two lists? One in 'struct nft_flowtable' and
another in 'struct nf_flowtable', right?

>  	struct rhashtable		rhashtable;
>  	const struct nf_flowtable_type	*type;
>  	struct delayed_work		gc_work;
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux