Home
last modified time | relevance | path

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

/openbmc/linux/net/netfilter/
H A Dnf_conntrack_ecache.c43 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conn_pernet_ecache() local
45 return &cnet->ecache; in nf_conn_pernet_ecache()
64 spin_lock_bh(&cnet->ecache.dying_lock); in ecache_work_evict_list()
86 spin_unlock_bh(&cnet->ecache.dying_lock); in ecache_work_evict_list()
92 spin_unlock_bh(&cnet->ecache.dying_lock); in ecache_work_evict_list()
111 ret = ecache_work_evict_list(cnet); in ecache_work()
124 schedule_delayed_work(&cnet->ecache.dwork, delay); in ecache_work()
289 !delayed_work_pending(&cnet->ecache.dwork)) { in nf_conntrack_ecache_work()
290 schedule_delayed_work(&cnet->ecache.dwork, HZ); in nf_conntrack_ecache_work()
348 spin_lock_init(&cnet->ecache.dying_lock); in nf_conntrack_ecache_pernet_init()
[all …]
H A Dnf_conntrack_proto.c448 cnet->users4++; in nf_ct_netns_do_get()
449 if (cnet->users4 > 1) in nf_ct_netns_do_get()
453 cnet->users4 = 0; in nf_ct_netns_do_get()
460 cnet->users4 = 0; in nf_ct_netns_do_get()
466 cnet->users6++; in nf_ct_netns_do_get()
467 if (cnet->users6 > 1) in nf_ct_netns_do_get()
471 cnet->users6 = 0; in nf_ct_netns_do_get()
478 cnet->users6 = 0; in nf_ct_netns_do_get()
534 if (cnet->users4 && (--cnet->users4 == 0)) { in nf_ct_netns_do_put()
542 if (cnet->users6 && (--cnet->users6 == 0)) { in nf_ct_netns_do_put()
[all …]
H A 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()
139 if (!cnet->expect_count) in __nf_ct_expect_find()
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()
436 struct nf_conntrack_net *cnet; in __nf_ct_expect_check() local
480 cnet = nf_ct_pernet(net); in __nf_ct_expect_check()
[all …]
H A Dnf_conntrack_core.c639 &cnet->ecache.dying_list); in nf_ct_add_to_ecache_list()
1537 cnet = nf_ct_pernet(net); in gc_worker()
1623 atomic_dec(&cnet->count); in __nf_conntrack_alloc()
1656 atomic_dec(&cnet->count); in __nf_conntrack_alloc()
1673 struct nf_conntrack_net *cnet; in nf_conntrack_free() local
1692 cnet = nf_ct_pernet(net); in nf_conntrack_free()
1695 atomic_dec(&cnet->count); in nf_conntrack_free()
1718 struct nf_conntrack_net *cnet; in init_conntrack() local
1756 cnet = nf_ct_pernet(net); in init_conntrack()
1757 if (cnet->expect_count) { in init_conntrack()
[all …]
H A Dnf_conntrack_standalone.c514 const struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conntrack_count() local
516 return atomic_read(&cnet->count); in nf_conntrack_count()
1052 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conntrack_standalone_init_sysctl() local
1063 table[NF_SYSCTL_CT_COUNT].data = &cnet->count; in nf_conntrack_standalone_init_sysctl()
1094 cnet->sysctl_header = register_net_sysctl_sz(net, "net/netfilter", in nf_conntrack_standalone_init_sysctl()
1097 if (!cnet->sysctl_header) in nf_conntrack_standalone_init_sysctl()
1109 struct nf_conntrack_net *cnet = nf_ct_pernet(net); in nf_conntrack_standalone_fini_sysctl() local
1112 table = cnet->sysctl_header->ctl_table_arg; in nf_conntrack_standalone_fini_sysctl()
1113 unregister_net_sysctl_table(cnet->sysctl_header); in nf_conntrack_standalone_fini_sysctl()