};
 
 struct nf_conntrack_net {
+       /* only used when new connection is allocated: */
+       bool auto_assign_helper_warned;
+
+       /* only used from work queues, configuration plane, and so on: */
        unsigned int users4;
        unsigned int users6;
        unsigned int users_bridge;
 
 static DEFINE_MUTEX(nf_ct_nat_helpers_mutex);
 static struct list_head nf_ct_nat_helpers __read_mostly;
 
+extern unsigned int nf_conntrack_net_id;
+
 /* Stupid hash, but collision free for the default registrations of the
  * helpers currently in the kernel. */
 static unsigned int helper_hash(const struct nf_conntrack_tuple *tuple)
 static struct nf_conntrack_helper *
 nf_ct_lookup_helper(struct nf_conn *ct, struct net *net)
 {
+       struct nf_conntrack_net *cnet = net_generic(net, nf_conntrack_net_id);
+
        if (!net->ct.sysctl_auto_assign_helper) {
-               if (net->ct.auto_assign_helper_warned)
+               if (cnet->auto_assign_helper_warned)
                        return NULL;
                if (!__nf_ct_helper_find(&ct->tuplehash[IP_CT_DIR_REPLY].tuple))
                        return NULL;
                        "has been turned off for security reasons and CT-based "
                        "firewall rule not found. Use the iptables CT target "
                        "to attach helpers instead.\n");
-               net->ct.auto_assign_helper_warned = 1;
+               cnet->auto_assign_helper_warned = true;
                return NULL;
        }
 
 
 void nf_conntrack_helper_pernet_init(struct net *net)
 {
-       net->ct.auto_assign_helper_warned = false;
        net->ct.sysctl_auto_assign_helper = nf_ct_auto_assign_helper;
 }