Home
last modified time | relevance | path

Searched refs:cnet (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.15/net/netfilter/
Dnf_conntrack_ecache.c99 struct nf_conntrack_net *cnet = container_of(work, struct nf_conntrack_net, ecache_dwork.work); in ecache_work() local
100 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() local
295 !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() local
318 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 …]
Dnf_conntrack_proto.c449 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_ct_netns_do_get() local
457 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 …]
Dnf_conntrack_expect.c52 struct nf_conntrack_net *cnet; in nf_ct_unlink_expect_report() local
59 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() local
139 if (!cnet->expect_count) in __nf_ct_expect_find()
176 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_ct_find_expectation() local
180 if (!cnet->expect_count) in nf_ct_find_expectation()
387 struct nf_conntrack_net *cnet; in nf_ct_expect_insert() local
409 cnet = nf_ct_pernet(net); in nf_ct_expect_insert()
410 cnet->expect_count++; in nf_ct_expect_insert()
[all …]
Dnf_conntrack_helper.c215 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_ct_lookup_helper() local
217 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() local
563 cnet->sysctl_auto_assign_helper = nf_ct_auto_assign_helper; in nf_conntrack_helper_pernet_init()
Dnf_conntrack_core.c1448 struct nf_conntrack_net *cnet; in gc_worker() local
1467 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() local
1536 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() local
1603 cnet = nf_ct_pernet(net); in nf_conntrack_free()
1606 atomic_dec(&cnet->count); in nf_conntrack_free()
[all …]
Dnf_conntrack_standalone.c518 const struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conntrack_count() local
520 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() local
1096 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() local
1144 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()