Searched refs:fq (Results 1 – 5 of 5) sorted by relevance
/net/ipv6/ |
D | reassembly.c | 79 static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff *prev, 84 struct frag_queue *fq = container_of(q, struct frag_queue, q); in ip6_frag_init() local 88 fq->ecn = 0; in ip6_frag_init() 92 void ip6_expire_frag_queue(struct net *net, struct frag_queue *fq) in ip6_expire_frag_queue() argument 98 spin_lock(&fq->q.lock); in ip6_expire_frag_queue() 100 if (fq->q.flags & INET_FRAG_COMPLETE) in ip6_expire_frag_queue() 103 inet_frag_kill(&fq->q); in ip6_expire_frag_queue() 105 dev = dev_get_by_index_rcu(net, fq->iif); in ip6_expire_frag_queue() 113 head = fq->q.fragments; in ip6_expire_frag_queue() 114 if (!(fq->q.flags & INET_FRAG_FIRST_IN) || !head) in ip6_expire_frag_queue() [all …]
|
/net/ieee802154/6lowpan/ |
D | reassembly.c | 37 static int lowpan_frag_reasm(struct lowpan_frag_queue *fq, 43 struct lowpan_frag_queue *fq; in lowpan_frag_init() local 45 fq = container_of(q, struct lowpan_frag_queue, q); in lowpan_frag_init() 53 struct frag_queue *fq; in lowpan_frag_expire() local 56 fq = container_of((struct inet_frag_queue *)data, struct frag_queue, q); in lowpan_frag_expire() 57 net = container_of(fq->q.net, struct net, ieee802154_lowpan.frags); in lowpan_frag_expire() 59 spin_lock(&fq->q.lock); in lowpan_frag_expire() 61 if (fq->q.flags & INET_FRAG_COMPLETE) in lowpan_frag_expire() 64 inet_frag_kill(&fq->q); in lowpan_frag_expire() 66 spin_unlock(&fq->q.lock); in lowpan_frag_expire() [all …]
|
/net/ipv6/netfilter/ |
D | nf_conntrack_reasm.c | 162 struct frag_queue *fq; in nf_ct_frag6_expire() local 165 fq = container_of((struct inet_frag_queue *)data, struct frag_queue, q); in nf_ct_frag6_expire() 166 net = container_of(fq->q.net, struct net, nf_frag.frags); in nf_ct_frag6_expire() 168 ip6_expire_frag_queue(net, fq); in nf_ct_frag6_expire() 192 static int nf_ct_frag6_queue(struct frag_queue *fq, struct sk_buff *skb, in nf_ct_frag6_queue() argument 200 if (fq->q.flags & INET_FRAG_COMPLETE) { in nf_ct_frag6_queue() 230 if (end < fq->q.len || in nf_ct_frag6_queue() 231 ((fq->q.flags & INET_FRAG_LAST_IN) && end != fq->q.len)) { in nf_ct_frag6_queue() 235 fq->q.flags |= INET_FRAG_LAST_IN; in nf_ct_frag6_queue() 236 fq->q.len = end; in nf_ct_frag6_queue() [all …]
|
/net/ipv4/ |
D | inet_fragment.c | 72 struct inet_frag_queue *fq = ptr; in inet_frags_free_cb() local 78 if (!del_timer(&fq->timer)) in inet_frags_free_cb() 81 spin_lock_bh(&fq->lock); in inet_frags_free_cb() 82 if (!(fq->flags & INET_FRAG_COMPLETE)) { in inet_frags_free_cb() 83 fq->flags |= INET_FRAG_COMPLETE; in inet_frags_free_cb() 84 atomic_dec(&fq->refcnt); in inet_frags_free_cb() 86 spin_unlock_bh(&fq->lock); in inet_frags_free_cb() 88 inet_frag_put(fq); in inet_frags_free_cb() 99 void inet_frag_kill(struct inet_frag_queue *fq) in inet_frag_kill() argument 101 if (del_timer(&fq->timer)) in inet_frag_kill() [all …]
|
D | ip_fragment.c | 943 const struct inet_frag_queue *fq = data; in ip4_obj_hashfn() local 945 return jhash2((const u32 *)&fq->key.v4, in ip4_obj_hashfn() 952 const struct inet_frag_queue *fq = ptr; in ip4_obj_cmpfn() local 954 return !!memcmp(&fq->key, key, sizeof(*key)); in ip4_obj_cmpfn()
|