Searched refs:cnet (Results 1 – 6 of 6) sorted by relevance
99 struct nf_conntrack_net *cnet = container_of(work, struct nf_conntrack_net, ecache_dwork.work); in ecache_work() local100 struct netns_ct *ctnet = cnet->ct_net; in ecache_work()130 schedule_delayed_work(&cnet->ecache_dwork, delay); in ecache_work()292 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conntrack_ecache_work() local295 !delayed_work_pending(&cnet->ecache_dwork)) { in nf_conntrack_ecache_work()296 schedule_delayed_work(&cnet->ecache_dwork, HZ); in nf_conntrack_ecache_work()300 mod_delayed_work(system_wq, &cnet->ecache_dwork, 0); in nf_conntrack_ecache_work()315 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conntrack_ecache_pernet_init() local318 cnet->ct_net = &net->ct; in nf_conntrack_ecache_pernet_init()319 INIT_DELAYED_WORK(&cnet->ecache_dwork, ecache_work); in nf_conntrack_ecache_pernet_init()[all …]
449 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_ct_netns_do_get() local457 cnet->users4++; in nf_ct_netns_do_get()458 if (cnet->users4 > 1) in nf_ct_netns_do_get()462 cnet->users4 = 0; in nf_ct_netns_do_get()469 cnet->users4 = 0; in nf_ct_netns_do_get()475 cnet->users6++; in nf_ct_netns_do_get()476 if (cnet->users6 > 1) in nf_ct_netns_do_get()480 cnet->users6 = 0; in nf_ct_netns_do_get()487 cnet->users6 = 0; in nf_ct_netns_do_get()507 cnet->users_bridge++; in nf_ct_netns_do_get()[all …]
52 struct nf_conntrack_net *cnet; in nf_ct_unlink_expect_report() local59 cnet = nf_ct_pernet(net); in nf_ct_unlink_expect_report()60 cnet->expect_count--; in nf_ct_unlink_expect_report()135 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in __nf_ct_expect_find() local139 if (!cnet->expect_count) in __nf_ct_expect_find()176 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_ct_find_expectation() local180 if (!cnet->expect_count) in nf_ct_find_expectation()387 struct nf_conntrack_net *cnet; in nf_ct_expect_insert() local409 cnet = nf_ct_pernet(net); in nf_ct_expect_insert()410 cnet->expect_count++; in nf_ct_expect_insert()[all …]
215 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_ct_lookup_helper() local217 if (!cnet->sysctl_auto_assign_helper) { in nf_ct_lookup_helper()218 if (cnet->auto_assign_helper_warned) in nf_ct_lookup_helper()226 cnet->auto_assign_helper_warned = true; in nf_ct_lookup_helper()561 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conntrack_helper_pernet_init() local563 cnet->sysctl_auto_assign_helper = nf_ct_auto_assign_helper; in nf_conntrack_helper_pernet_init()
1448 struct nf_conntrack_net *cnet; in gc_worker() local1467 cnet = nf_ct_pernet(net); in gc_worker()1468 if (atomic_read(&cnet->count) < nf_conntrack_max95) in gc_worker()1531 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in __nf_conntrack_alloc() local1536 ct_count = atomic_inc_return(&cnet->count); in __nf_conntrack_alloc()1542 atomic_dec(&cnet->count); in __nf_conntrack_alloc()1577 atomic_dec(&cnet->count); in __nf_conntrack_alloc()1594 struct nf_conntrack_net *cnet; in nf_conntrack_free() local1603 cnet = nf_ct_pernet(net); in nf_conntrack_free()1606 atomic_dec(&cnet->count); in nf_conntrack_free()[all …]
518 const struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conntrack_count() local520 return atomic_read(&cnet->count); in nf_conntrack_count()1085 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conntrack_standalone_init_sysctl() local1096 table[NF_SYSCTL_CT_COUNT].data = &cnet->count; in nf_conntrack_standalone_init_sysctl()1100 table[NF_SYSCTL_CT_HELPER].data = &cnet->sysctl_auto_assign_helper; in nf_conntrack_standalone_init_sysctl()1128 cnet->sysctl_header = register_net_sysctl(net, "net/netfilter", table); in nf_conntrack_standalone_init_sysctl()1129 if (!cnet->sysctl_header) in nf_conntrack_standalone_init_sysctl()1141 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conntrack_standalone_fini_sysctl() local1144 table = cnet->sysctl_header->ctl_table_arg; in nf_conntrack_standalone_fini_sysctl()1145 unregister_net_sysctl_table(cnet->sysctl_header); in nf_conntrack_standalone_fini_sysctl()