Lines Matching refs:en

132 	struct ip_vs_lblc_entry *en = container_of(head,  in ip_vs_lblc_rcu_free()  local
136 ip_vs_dest_put_and_free(en->dest); in ip_vs_lblc_rcu_free()
137 kfree(en); in ip_vs_lblc_rcu_free()
140 static inline void ip_vs_lblc_del(struct ip_vs_lblc_entry *en) in ip_vs_lblc_del() argument
142 hlist_del_rcu(&en->list); in ip_vs_lblc_del()
143 call_rcu(&en->rcu_head, ip_vs_lblc_rcu_free); in ip_vs_lblc_del()
168 ip_vs_lblc_hash(struct ip_vs_lblc_table *tbl, struct ip_vs_lblc_entry *en) in ip_vs_lblc_hash() argument
170 unsigned int hash = ip_vs_lblc_hashkey(en->af, &en->addr); in ip_vs_lblc_hash()
172 hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); in ip_vs_lblc_hash()
183 struct ip_vs_lblc_entry *en; in ip_vs_lblc_get() local
185 hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) in ip_vs_lblc_get()
186 if (ip_vs_addr_equal(af, &en->addr, addr)) in ip_vs_lblc_get()
187 return en; in ip_vs_lblc_get()
201 struct ip_vs_lblc_entry *en; in ip_vs_lblc_new() local
203 en = ip_vs_lblc_get(af, tbl, daddr); in ip_vs_lblc_new()
204 if (en) { in ip_vs_lblc_new()
205 if (en->dest == dest) in ip_vs_lblc_new()
206 return en; in ip_vs_lblc_new()
207 ip_vs_lblc_del(en); in ip_vs_lblc_new()
209 en = kmalloc(sizeof(*en), GFP_ATOMIC); in ip_vs_lblc_new()
210 if (!en) in ip_vs_lblc_new()
213 en->af = af; in ip_vs_lblc_new()
214 ip_vs_addr_copy(af, &en->addr, daddr); in ip_vs_lblc_new()
215 en->lastuse = jiffies; in ip_vs_lblc_new()
218 en->dest = dest; in ip_vs_lblc_new()
220 ip_vs_lblc_hash(tbl, en); in ip_vs_lblc_new()
222 return en; in ip_vs_lblc_new()
232 struct ip_vs_lblc_entry *en; in ip_vs_lblc_flush() local
239 hlist_for_each_entry_safe(en, next, &tbl->bucket[i], list) { in ip_vs_lblc_flush()
240 ip_vs_lblc_del(en); in ip_vs_lblc_flush()
259 struct ip_vs_lblc_entry *en; in ip_vs_lblc_full_check() local
268 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblc_full_check()
270 en->lastuse + in ip_vs_lblc_full_check()
274 ip_vs_lblc_del(en); in ip_vs_lblc_full_check()
301 struct ip_vs_lblc_entry *en; in ip_vs_lblc_check_expire() local
324 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblc_check_expire()
325 if (time_before(now, en->lastuse + ENTRY_TIMEOUT)) in ip_vs_lblc_check_expire()
328 ip_vs_lblc_del(en); in ip_vs_lblc_check_expire()
486 struct ip_vs_lblc_entry *en; in ip_vs_lblc_schedule() local
491 en = ip_vs_lblc_get(svc->af, tbl, &iph->daddr); in ip_vs_lblc_schedule()
492 if (en) { in ip_vs_lblc_schedule()
494 en->lastuse = jiffies; in ip_vs_lblc_schedule()
505 dest = en->dest; in ip_vs_lblc_schedule()