Lines Matching refs:ipq
72 struct ipq { struct
73 struct ipq *next; /* linked list pointers */ argument
91 struct ipq **pprev; argument
101 static struct ipq *ipq_hash[IPQ_HASHSZ]; argument
107 static __inline__ void __ipq_unlink(struct ipq *qp) in __ipq_unlink()
116 static __inline__ void ipq_unlink(struct ipq *ipq) in ipq_unlink() argument
119 __ipq_unlink(ipq); in ipq_unlink()
140 struct ipq *q; in ipfrag_secret_rebuild()
144 struct ipq *next = q->next; in ipfrag_secret_rebuild()
180 static __inline__ void frag_free_queue(struct ipq *qp, int *work) in frag_free_queue()
183 *work -= sizeof(struct ipq); in frag_free_queue()
184 atomic_sub(sizeof(struct ipq), &ip_frag_mem); in frag_free_queue()
188 static __inline__ struct ipq *frag_alloc_queue(void) in frag_alloc_queue()
190 struct ipq *qp = kmalloc(sizeof(struct ipq), GFP_ATOMIC); in frag_alloc_queue()
194 atomic_add(sizeof(struct ipq), &ip_frag_mem); in frag_alloc_queue()
202 static void ip_frag_destroy(struct ipq *qp, int *work) in ip_frag_destroy()
222 static __inline__ void ipq_put(struct ipq *ipq, int *work) in ipq_put() argument
224 if (atomic_dec_and_test(&ipq->refcnt)) in ipq_put()
225 ip_frag_destroy(ipq, work); in ipq_put()
231 static __inline__ void ipq_kill(struct ipq *ipq) in ipq_kill() argument
233 if (del_timer(&ipq->timer)) in ipq_kill()
234 atomic_dec(&ipq->refcnt); in ipq_kill()
236 if (!(ipq->last_in & COMPLETE)) { in ipq_kill()
237 ipq_unlink(ipq); in ipq_kill()
238 atomic_dec(&ipq->refcnt); in ipq_kill()
239 ipq->last_in |= COMPLETE; in ipq_kill()
248 struct ipq *qp; in ip_evictor()
263 qp = list_entry(tmp, struct ipq, lru_list); in ip_evictor()
282 struct ipq *qp = (struct ipq *) arg; in ip_expire()
309 static struct ipq *ip_frag_intern(unsigned int hash, struct ipq *qp_in) in ip_frag_intern()
311 struct ipq *qp; in ip_frag_intern()
351 static struct ipq *ip_frag_create(unsigned hash, struct iphdr *iph, u32 user) in ip_frag_create()
353 struct ipq *qp; in ip_frag_create()
386 static inline struct ipq *ip_find(struct iphdr *iph, u32 user) in ip_find()
393 struct ipq *qp; in ip_find()
413 static void ip_frag_queue(struct ipq *qp, struct sk_buff *skb) in ip_frag_queue()
554 static struct sk_buff *ip_frag_reasm(struct ipq *qp, struct net_device *dev) in ip_frag_reasm()
646 struct ipq *qp; in ip_defrag()