netfilter: nfnetlink: add netns refcount tracker to struct nfulnl_instance
authorEric Dumazet <edumazet@google.com>
Mon, 13 Dec 2021 16:39:59 +0000 (08:39 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Dec 2021 11:49:34 +0000 (12:49 +0100)
commita9382d9389a045ddc1e6f8e0595eb793f6933d68
tree0317e5d106e6a57815ad7a91b7e4ce8a0cefcf7a
parent604ba230902d23c6e85c7dba9cfcb6a37661cb12
netfilter: nfnetlink: add netns refcount tracker to struct nfulnl_instance

If compiled with CONFIG_NET_NS_REFCNT_TRACKER=y,
using put_net_track() in nfulnl_instance_free_rcu()
and get_net_track() in instance_create()
might help us finding netns refcount imbalances.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_log.c