Lines Matching defs:entry
85 static void nf_queue_entry_release_refs(struct nf_queue_entry *entry)
88 if (entry->indev)
89 dev_put(entry->indev);
90 if (entry->outdev)
91 dev_put(entry->outdev);
93 if (entry->skb->nf_bridge) {
94 struct nf_bridge_info *nf_bridge = entry->skb->nf_bridge;
103 module_put(entry->elem->owner);
119 struct nf_queue_entry *entry = NULL;
140 entry = kmalloc(sizeof(*entry) + afinfo->route_key_size, GFP_ATOMIC);
141 if (!entry) {
146 *entry = (struct nf_queue_entry) {
157 if (!try_module_get(entry->elem->owner)) {
178 afinfo->saveroute(skb, entry);
179 status = qh->outfn(entry, queuenum);
184 nf_queue_entry_release_refs(entry);
193 kfree(entry);
257 void nf_reinject(struct nf_queue_entry *entry, unsigned int verdict)
259 struct sk_buff *skb = entry->skb;
260 struct list_head *elem = &entry->elem->list;
266 nf_queue_entry_release_refs(entry);
275 afinfo = nf_get_afinfo(entry->pf);
276 if (!afinfo || afinfo->reroute(skb, entry) < 0)
282 verdict = nf_iterate(&nf_hooks[entry->pf][entry->hook],
283 skb, entry->hook,
284 entry->indev, entry->outdev, &elem,
285 entry->okfn, INT_MIN);
292 entry->okfn(skb);
296 err = __nf_queue(skb, elem, entry->pf, entry->hook,
297 entry->indev, entry->outdev, entry->okfn,
313 kfree(entry);