Lines Matching refs:svc
26 static int ip_vs_rr_init_svc(struct ip_vs_service *svc)
28 svc->sched_data = &svc->destinations;
33 static int ip_vs_rr_del_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest)
37 spin_lock_bh(&svc->sched_lock);
38 p = (struct list_head *) svc->sched_data;
43 svc->sched_data = p->next->prev;
44 spin_unlock_bh(&svc->sched_lock);
53 ip_vs_rr_schedule(struct ip_vs_service *svc, const struct sk_buff *skb,
62 spin_lock_bh(&svc->sched_lock);
63 p = (struct list_head *) svc->sched_data;
68 &svc->destinations,
81 } while (pass < 2 && p != &svc->destinations);
84 spin_unlock_bh(&svc->sched_lock);
85 ip_vs_scheduler_err(svc, "no destination available");
89 svc->sched_data = &dest->n_list;
90 spin_unlock_bh(&svc->sched_lock);