/linux-6.1.9/net/ipv4/ |
D | inet_fragment.c | 153 struct fqdir *fqdir, *tmp; in fqdir_free_fn() local 165 llist_for_each_entry_safe(fqdir, tmp, kill_list, free_list) { in fqdir_free_fn() 166 f = fqdir->f; in fqdir_free_fn() 170 kfree(fqdir); in fqdir_free_fn() 178 struct fqdir *fqdir = container_of(work, struct fqdir, destroy_work); in fqdir_work_fn() local 180 rhashtable_free_and_destroy(&fqdir->rhashtable, inet_frags_free_cb, NULL); in fqdir_work_fn() 182 if (llist_add(&fqdir->free_list, &fqdir_free_list)) in fqdir_work_fn() 186 int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net) in fqdir_init() 188 struct fqdir *fqdir = kzalloc(sizeof(*fqdir), GFP_KERNEL); in fqdir_init() local 191 if (!fqdir) in fqdir_init() [all …]
|
D | ip_fragment.c | 85 struct net *net = q->fqdir->net; in ip4_frag_init() 91 qp->peer = q->fqdir->max_dist ? in ip4_frag_init() 143 net = qp->q.fqdir->net; in ip_expire() 148 if (READ_ONCE(qp->q.fqdir->dead)) in ip_expire() 217 q = inet_frag_find(net->ipv4.fqdir, &key); in ip_find() 228 unsigned int max = qp->q.fqdir->max_dist; in ip_frag_too_far() 243 __IP_INC_STATS(qp->q.fqdir->net, IPSTATS_MIB_REASMFAILS); in ip_frag_too_far() 252 if (!mod_timer(&qp->q.timer, jiffies + qp->q.fqdir->timeout)) { in ip_frag_reinit() 258 sub_frag_mem_limit(qp->q.fqdir, sum_truesize); in ip_frag_reinit() 275 struct net *net = qp->q.fqdir->net; in ip_frag_queue() [all …]
|
D | proc.c | 72 atomic_read(&net->ipv4.fqdir->rhashtable.nelems), in sockstat_seq_show() 73 frag_mem_limit(net->ipv4.fqdir)); in sockstat_seq_show()
|
/linux-6.1.9/include/net/ |
D | inet_frag.h | 12 struct fqdir { struct 100 struct fqdir *fqdir; member 121 int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net); 123 static inline void fqdir_pre_exit(struct fqdir *fqdir) in fqdir_pre_exit() argument 128 WRITE_ONCE(fqdir->high_thresh, 0); in fqdir_pre_exit() 133 WRITE_ONCE(fqdir->dead, true); in fqdir_pre_exit() 135 void fqdir_exit(struct fqdir *fqdir); 139 struct inet_frag_queue *inet_frag_find(struct fqdir *fqdir, void *key); 152 static inline long frag_mem_limit(const struct fqdir *fqdir) in frag_mem_limit() argument 154 return atomic_long_read(&fqdir->mem); in frag_mem_limit() [all …]
|
D | ipv6_frag.h | 72 if (READ_ONCE(fq->q.fqdir->dead)) in ip6frag_expire_frag_queue()
|
/linux-6.1.9/net/ipv6/ |
D | reassembly.c | 80 ip6frag_expire_frag_queue(fq->q.fqdir->net, fq); in ip6_frag_expire() 99 q = inet_frag_find(net->ipv6.fqdir, &key); in fq_find() 200 add_frag_mem_limit(fq->q.fqdir, skb->truesize); in ip6_frag_queue() 254 struct net *net = fq->q.fqdir->net; in ip6_frag_reasm() 462 table[0].data = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register() 463 table[0].extra1 = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register() 464 table[1].data = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register() 465 table[1].extra2 = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register() 466 table[2].data = &net->ipv6.fqdir->timeout; in ip6_frags_ns_sysctl_register() 529 res = fqdir_init(&net->ipv6.fqdir, &ip6_frags, net); in ipv6_frags_init_net() [all …]
|
D | proc.c | 47 atomic_read(&net->ipv6.fqdir->rhashtable.nelems), in sockstat6_seq_show() 48 frag_mem_limit(net->ipv6.fqdir)); in sockstat6_seq_show()
|
/linux-6.1.9/net/ipv6/netfilter/ |
D | nf_conntrack_reasm.c | 84 table[0].data = &nf_frag->fqdir->timeout; in nf_ct_frag6_sysctl_register() 85 table[1].data = &nf_frag->fqdir->low_thresh; in nf_ct_frag6_sysctl_register() 86 table[1].extra2 = &nf_frag->fqdir->high_thresh; in nf_ct_frag6_sysctl_register() 87 table[2].data = &nf_frag->fqdir->high_thresh; in nf_ct_frag6_sysctl_register() 88 table[2].extra1 = &nf_frag->fqdir->low_thresh; in nf_ct_frag6_sysctl_register() 140 ip6frag_expire_frag_queue(fq->q.fqdir->net, fq); in nf_ct_frag6_expire() 157 q = inet_frag_find(nf_frag->fqdir, &key); in fq_find() 271 add_frag_mem_limit(fq->q.fqdir, skb->truesize); in nf_ct_frag6_queue() 498 res = fqdir_init(&nf_frag->fqdir, &nf_frags, net); in nf_ct_net_init() 502 nf_frag->fqdir->high_thresh = IPV6_FRAG_HIGH_THRESH; in nf_ct_net_init() [all …]
|
/linux-6.1.9/net/ieee802154/6lowpan/ |
D | reassembly.c | 77 q = inet_frag_find(ieee802154_lowpan->fqdir, &key); in fq_find() 138 add_frag_mem_limit(fq->q.fqdir, skb->truesize); in lowpan_frag_queue() 376 table[0].data = &ieee802154_lowpan->fqdir->high_thresh; in lowpan_frags_ns_sysctl_register() 377 table[0].extra1 = &ieee802154_lowpan->fqdir->low_thresh; in lowpan_frags_ns_sysctl_register() 378 table[1].data = &ieee802154_lowpan->fqdir->low_thresh; in lowpan_frags_ns_sysctl_register() 379 table[1].extra2 = &ieee802154_lowpan->fqdir->high_thresh; in lowpan_frags_ns_sysctl_register() 380 table[2].data = &ieee802154_lowpan->fqdir->timeout; in lowpan_frags_ns_sysctl_register() 449 res = fqdir_init(&ieee802154_lowpan->fqdir, &lowpan_frags, net); in lowpan_frags_init_net() 453 ieee802154_lowpan->fqdir->high_thresh = IPV6_FRAG_HIGH_THRESH; in lowpan_frags_init_net() 454 ieee802154_lowpan->fqdir->low_thresh = IPV6_FRAG_LOW_THRESH; in lowpan_frags_init_net() [all …]
|
/linux-6.1.9/include/net/netns/ |
D | ipv6.h | 68 struct fqdir *fqdir; member 125 struct fqdir *fqdir; member
|
D | ieee802154_6lowpan.h | 19 struct fqdir *fqdir; member
|
D | ipv4.h | 76 struct fqdir *fqdir; member
|
/linux-6.1.9/include/net/netfilter/ipv6/ |
D | nf_defrag_ipv6.h | 19 struct fqdir *fqdir; member
|