Lines Matching refs:svc
104 ip_vs_sh_get(struct ip_vs_service *svc, struct ip_vs_sh_state *s,
107 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0);
121 ip_vs_sh_get_fallback(struct ip_vs_service *svc, struct ip_vs_sh_state *s,
129 ihash = ip_vs_sh_hashkey(svc->af, addr, port, 0);
144 hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset);
163 ip_vs_sh_reassign(struct ip_vs_sh_state *s, struct ip_vs_service *svc)
173 p = &svc->destinations;
183 if (p == &svc->destinations)
228 static int ip_vs_sh_init_svc(struct ip_vs_service *svc)
237 svc->sched_data = s;
243 ip_vs_sh_reassign(s, svc);
249 static void ip_vs_sh_done_svc(struct ip_vs_service *svc)
251 struct ip_vs_sh_state *s = svc->sched_data;
263 static int ip_vs_sh_dest_changed(struct ip_vs_service *svc,
266 struct ip_vs_sh_state *s = svc->sched_data;
269 ip_vs_sh_reassign(s, svc);
309 ip_vs_sh_schedule(struct ip_vs_service *svc, const struct sk_buff *skb,
321 if (svc->flags & IP_VS_SVC_F_SCHED_SH_PORT)
324 s = (struct ip_vs_sh_state *) svc->sched_data;
326 if (svc->flags & IP_VS_SVC_F_SCHED_SH_FALLBACK)
327 dest = ip_vs_sh_get_fallback(svc, s, hash_addr, port);
329 dest = ip_vs_sh_get(svc, s, hash_addr, port);
332 ip_vs_scheduler_err(svc, "no destination available");
337 IP_VS_DBG_ADDR(svc->af, hash_addr),