/linux/include/net/ |
H A D | inet_frag.h | 13 struct fqdir { struct 103 struct fqdir *fqdir; member 124 int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net); 126 static inline void fqdir_pre_exit(struct fqdir *fqdir) in fqdir_pre_exit() argument 131 WRITE_ONCE(fqdir->high_thresh, 0); in fqdir_pre_exit() 136 WRITE_ONCE(fqdir->dead, true); in fqdir_pre_exit() 138 void fqdir_exit(struct fqdir *fqdir); 142 struct inet_frag_queue *inet_frag_find(struct fqdir *fqdir, void *key); 156 static inline long frag_mem_limit(const struct fqdir *fqdir) in frag_mem_limit() argument 158 return atomic_long_read(&fqdir->mem); in frag_mem_limit() [all …]
|
H A D | ipv6_frag.h | 72 if (READ_ONCE(fq->q.fqdir->dead)) in ip6frag_expire_frag_queue()
|
/linux/net/ipv4/ |
H A D | inet_fragment.c | 157 struct fqdir *fqdir, *tmp; in fqdir_free_fn() local 169 llist_for_each_entry_safe(fqdir, tmp, kill_list, free_list) { in fqdir_free_fn() 170 f = fqdir->f; in fqdir_free_fn() 174 kfree(fqdir); in fqdir_free_fn() 182 struct fqdir *fqdir = container_of(work, struct fqdir, destroy_work); in fqdir_work_fn() local 184 rhashtable_free_and_destroy(&fqdir->rhashtable, inet_frags_free_cb, NULL); in fqdir_work_fn() 186 if (llist_add(&fqdir->free_list, &fqdir_free_list)) in fqdir_work_fn() 190 int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net) in fqdir_init() 192 struct fqdir *fqdir = kzalloc(sizeof(*fqdir), GFP_KERNEL); in fqdir_init() local 195 if (!fqdir) in fqdir_init() [all …]
|
H A 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() 218 q = inet_frag_find(net->ipv4.fqdir, &key); in ip_find() 229 unsigned int max = qp->q.fqdir->max_dist; in ip_frag_too_far() 244 __IP_INC_STATS(qp->q.fqdir->net, IPSTATS_MIB_REASMFAILS); in ip_frag_too_far() 253 if (!mod_timer(&qp->q.timer, jiffies + qp->q.fqdir->timeout)) { in ip_frag_reinit() 260 sub_frag_mem_limit(qp->q.fqdir, sum_truesize); in ip_frag_reinit() 277 struct net *net = qp->q.fqdir->net; in ip_frag_queue() [all …]
|
H A D | proc.c | 73 atomic_read(&net->ipv4.fqdir->rhashtable.nelems), in sockstat_seq_show() 74 frag_mem_limit(net->ipv4.fqdir)); in sockstat_seq_show()
|
/linux/net/ipv6/ |
H A 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() 204 add_frag_mem_limit(fq->q.fqdir, skb->truesize); in ip6_frag_queue() 259 struct net *net = fq->q.fqdir->net; in ip6_frag_reasm() 465 table[0].data = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register() 466 table[0].extra1 = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register() 467 table[1].data = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register() 468 table[1].extra2 = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register() 469 table[2].data = &net->ipv6.fqdir->timeout; in ip6_frags_ns_sysctl_register() 533 res = fqdir_init(&net->ipv6.fqdir, &ip6_frags, net); in ipv6_frags_init_net() [all …]
|
H A 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/net/ipv6/netfilter/ |
H A D | nf_conntrack_reasm.c | 83 table[0].data = &nf_frag->fqdir->timeout; in nf_ct_frag6_sysctl_register() 84 table[1].data = &nf_frag->fqdir->low_thresh; in nf_ct_frag6_sysctl_register() 85 table[1].extra2 = &nf_frag->fqdir->high_thresh; in nf_ct_frag6_sysctl_register() 86 table[2].data = &nf_frag->fqdir->high_thresh; in nf_ct_frag6_sysctl_register() 87 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() 161 q = inet_frag_find(nf_frag->fqdir, &key); in fq_find() 275 add_frag_mem_limit(fq->q.fqdir, skb->truesize); in nf_ct_frag6_queue() 502 res = fqdir_init(&nf_frag->fqdir, &nf_frags, net); in nf_ct_net_init() 506 nf_frag->fqdir->high_thresh = IPV6_FRAG_HIGH_THRESH; in nf_ct_net_init() [all …]
|
/linux/net/ieee802154/6lowpan/ |
H A 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() 375 table[0].data = &ieee802154_lowpan->fqdir->high_thresh; in lowpan_frags_ns_sysctl_register() 376 table[0].extra1 = &ieee802154_lowpan->fqdir->low_thresh; in lowpan_frags_ns_sysctl_register() 377 table[1].data = &ieee802154_lowpan->fqdir->low_thresh; in lowpan_frags_ns_sysctl_register() 378 table[1].extra2 = &ieee802154_lowpan->fqdir->high_thresh; in lowpan_frags_ns_sysctl_register() 379 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/include/net/netns/ |
H A D | ipv6.h | 69 struct fqdir *fqdir; member 126 struct fqdir *fqdir; member
|
H A D | ieee802154_6lowpan.h | 19 struct fqdir *fqdir; member
|
H A D | ipv4.h | 116 struct fqdir *fqdir; member
|
/linux/include/net/netfilter/ipv6/ |
H A D | nf_defrag_ipv6.h | 19 struct fqdir *fqdir; member
|
/linux/Documentation/networking/net_cachelines/ |
H A D | netns_ipv4_sysctl.rst | 33 struct_fqdir* fqdir …
|