Home
last modified time | relevance | path

Searched refs:svc (Results 1 – 25 of 35) sorted by relevance

12

/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_ctl.c270 static int ip_vs_svc_hash(struct ip_vs_service *svc) in ip_vs_svc_hash() argument
274 if (svc->flags & IP_VS_SVC_F_HASHED) { in ip_vs_svc_hash()
280 if (svc->fwmark == 0) { in ip_vs_svc_hash()
284 hash = ip_vs_svc_hashkey(svc->protocol, svc->addr, svc->port); in ip_vs_svc_hash()
285 list_add(&svc->s_list, &ip_vs_svc_table[hash]); in ip_vs_svc_hash()
290 hash = ip_vs_svc_fwm_hashkey(svc->fwmark); in ip_vs_svc_hash()
291 list_add(&svc->f_list, &ip_vs_svc_fwm_table[hash]); in ip_vs_svc_hash()
294 svc->flags |= IP_VS_SVC_F_HASHED; in ip_vs_svc_hash()
296 atomic_inc(&svc->refcnt); in ip_vs_svc_hash()
306 static int ip_vs_svc_unhash(struct ip_vs_service *svc) in ip_vs_svc_unhash() argument
[all …]
Dip_vs_wrr.c53 static int ip_vs_wrr_gcd_weight(struct ip_vs_service *svc) in ip_vs_wrr_gcd_weight() argument
60 l = &svc->destinations; in ip_vs_wrr_gcd_weight()
86 static int ip_vs_wrr_max_weight(struct ip_vs_service *svc) in ip_vs_wrr_max_weight() argument
92 l = &svc->destinations; in ip_vs_wrr_max_weight()
103 static int ip_vs_wrr_init_svc(struct ip_vs_service *svc) in ip_vs_wrr_init_svc() argument
115 mark->cl = &svc->destinations; in ip_vs_wrr_init_svc()
117 mark->mw = ip_vs_wrr_max_weight(svc); in ip_vs_wrr_init_svc()
118 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc()
119 svc->sched_data = mark; in ip_vs_wrr_init_svc()
125 static int ip_vs_wrr_done_svc(struct ip_vs_service *svc) in ip_vs_wrr_done_svc() argument
[all …]
Dip_vs_rr.c30 static int ip_vs_rr_init_svc(struct ip_vs_service *svc) in ip_vs_rr_init_svc() argument
32 svc->sched_data = &svc->destinations; in ip_vs_rr_init_svc()
37 static int ip_vs_rr_done_svc(struct ip_vs_service *svc) in ip_vs_rr_done_svc() argument
43 static int ip_vs_rr_update_svc(struct ip_vs_service *svc) in ip_vs_rr_update_svc() argument
45 svc->sched_data = &svc->destinations; in ip_vs_rr_update_svc()
54 ip_vs_rr_schedule(struct ip_vs_service *svc, struct iphdr *iph) in ip_vs_rr_schedule() argument
61 write_lock(&svc->sched_lock); in ip_vs_rr_schedule()
62 p = (struct list_head *)svc->sched_data; in ip_vs_rr_schedule()
66 if (q == &svc->destinations) { in ip_vs_rr_schedule()
76 write_unlock(&svc->sched_lock); in ip_vs_rr_schedule()
[all …]
Dip_vs_sh.c84 ip_vs_sh_assign(struct ip_vs_sh_bucket *tbl, struct ip_vs_service *svc) in ip_vs_sh_assign() argument
92 p = &svc->destinations; in ip_vs_sh_assign()
97 if (p == &svc->destinations) in ip_vs_sh_assign()
131 static int ip_vs_sh_init_svc(struct ip_vs_service *svc) in ip_vs_sh_init_svc() argument
142 svc->sched_data = tbl; in ip_vs_sh_init_svc()
148 ip_vs_sh_assign(tbl, svc); in ip_vs_sh_init_svc()
154 static int ip_vs_sh_done_svc(struct ip_vs_service *svc) in ip_vs_sh_done_svc() argument
156 struct ip_vs_sh_bucket *tbl = svc->sched_data; in ip_vs_sh_done_svc()
162 kfree(svc->sched_data); in ip_vs_sh_done_svc()
170 static int ip_vs_sh_update_svc(struct ip_vs_service *svc) in ip_vs_sh_update_svc() argument
[all …]
Dip_vs_dh.c87 ip_vs_dh_assign(struct ip_vs_dh_bucket *tbl, struct ip_vs_service *svc) in ip_vs_dh_assign() argument
95 p = &svc->destinations; in ip_vs_dh_assign()
100 if (p == &svc->destinations) in ip_vs_dh_assign()
134 static int ip_vs_dh_init_svc(struct ip_vs_service *svc) in ip_vs_dh_init_svc() argument
145 svc->sched_data = tbl; in ip_vs_dh_init_svc()
151 ip_vs_dh_assign(tbl, svc); in ip_vs_dh_init_svc()
157 static int ip_vs_dh_done_svc(struct ip_vs_service *svc) in ip_vs_dh_done_svc() argument
159 struct ip_vs_dh_bucket *tbl = svc->sched_data; in ip_vs_dh_done_svc()
165 kfree(svc->sched_data); in ip_vs_dh_done_svc()
173 static int ip_vs_dh_update_svc(struct ip_vs_service *svc) in ip_vs_dh_update_svc() argument
[all …]
Dip_vs_core.c96 spin_lock(&dest->svc->stats.lock); in ip_vs_in_stats()
97 dest->svc->stats.inpkts++; in ip_vs_in_stats()
98 dest->svc->stats.inbytes += skb->len; in ip_vs_in_stats()
99 spin_unlock(&dest->svc->stats.lock); in ip_vs_in_stats()
119 spin_lock(&dest->svc->stats.lock); in ip_vs_out_stats()
120 dest->svc->stats.outpkts++; in ip_vs_out_stats()
121 dest->svc->stats.outbytes += skb->len; in ip_vs_out_stats()
122 spin_unlock(&dest->svc->stats.lock); in ip_vs_out_stats()
133 ip_vs_conn_stats(struct ip_vs_conn *cp, struct ip_vs_service *svc) in ip_vs_conn_stats() argument
139 spin_lock(&svc->stats.lock); in ip_vs_conn_stats()
[all …]
Dip_vs_sched.c43 int ip_vs_bind_scheduler(struct ip_vs_service *svc, in ip_vs_bind_scheduler() argument
48 if (svc == NULL) { in ip_vs_bind_scheduler()
57 svc->scheduler = scheduler; in ip_vs_bind_scheduler()
60 ret = scheduler->init_service(svc); in ip_vs_bind_scheduler()
74 int ip_vs_unbind_scheduler(struct ip_vs_service *svc) in ip_vs_unbind_scheduler() argument
78 if (svc == NULL) { in ip_vs_unbind_scheduler()
83 sched = svc->scheduler; in ip_vs_unbind_scheduler()
90 if (sched->done_service(svc) != 0) { in ip_vs_unbind_scheduler()
96 svc->scheduler = NULL; in ip_vs_unbind_scheduler()
Dip_vs_lblc.c381 static int ip_vs_lblc_init_svc(struct ip_vs_service *svc) in ip_vs_lblc_init_svc() argument
394 svc->sched_data = tbl; in ip_vs_lblc_init_svc()
423 static int ip_vs_lblc_done_svc(struct ip_vs_service *svc) in ip_vs_lblc_done_svc() argument
425 struct ip_vs_lblc_table *tbl = svc->sched_data; in ip_vs_lblc_done_svc()
434 kfree(svc->sched_data); in ip_vs_lblc_done_svc()
442 static int ip_vs_lblc_update_svc(struct ip_vs_service *svc) in ip_vs_lblc_update_svc() argument
449 __ip_vs_wlc_schedule(struct ip_vs_service *svc, struct iphdr *iph) in __ip_vs_wlc_schedule() argument
473 l = &svc->destinations; in __ip_vs_wlc_schedule()
515 is_overloaded(struct ip_vs_dest *dest, struct ip_vs_service *svc) in is_overloaded() argument
521 l = &svc->destinations; in is_overloaded()
[all …]
Dip_vs_lc.c25 static int ip_vs_lc_init_svc(struct ip_vs_service *svc) in ip_vs_lc_init_svc() argument
31 static int ip_vs_lc_done_svc(struct ip_vs_service *svc) in ip_vs_lc_done_svc() argument
37 static int ip_vs_lc_update_svc(struct ip_vs_service *svc) in ip_vs_lc_update_svc() argument
62 ip_vs_lc_schedule(struct ip_vs_service *svc, struct iphdr *iph) in ip_vs_lc_schedule() argument
79 l = &svc->destinations; in ip_vs_lc_schedule()
Dip_vs_sed.c47 ip_vs_sed_init_svc(struct ip_vs_service *svc) in ip_vs_sed_init_svc() argument
54 ip_vs_sed_done_svc(struct ip_vs_service *svc) in ip_vs_sed_done_svc() argument
61 ip_vs_sed_update_svc(struct ip_vs_service *svc) in ip_vs_sed_update_svc() argument
82 ip_vs_sed_schedule(struct ip_vs_service *svc, struct iphdr *iph) in ip_vs_sed_schedule() argument
103 l = &svc->destinations; in ip_vs_sed_schedule()
Dip_vs_wlc.c31 ip_vs_wlc_init_svc(struct ip_vs_service *svc) in ip_vs_wlc_init_svc() argument
38 ip_vs_wlc_done_svc(struct ip_vs_service *svc) in ip_vs_wlc_done_svc() argument
45 ip_vs_wlc_update_svc(struct ip_vs_service *svc) in ip_vs_wlc_update_svc() argument
70 ip_vs_wlc_schedule(struct ip_vs_service *svc, struct iphdr *iph) in ip_vs_wlc_schedule() argument
91 l = &svc->destinations; in ip_vs_wlc_schedule()
Dip_vs_nq.c43 ip_vs_nq_init_svc(struct ip_vs_service *svc) in ip_vs_nq_init_svc() argument
50 ip_vs_nq_done_svc(struct ip_vs_service *svc) in ip_vs_nq_done_svc() argument
57 ip_vs_nq_update_svc(struct ip_vs_service *svc) in ip_vs_nq_update_svc() argument
78 ip_vs_nq_schedule(struct ip_vs_service *svc, struct iphdr *iph) in ip_vs_nq_schedule() argument
99 l = &svc->destinations; in ip_vs_nq_schedule()
Dip_vs_lblcr.c628 static int ip_vs_lblcr_init_svc(struct ip_vs_service *svc) in ip_vs_lblcr_init_svc() argument
641 svc->sched_data = tbl; in ip_vs_lblcr_init_svc()
673 static int ip_vs_lblcr_done_svc(struct ip_vs_service *svc) in ip_vs_lblcr_done_svc() argument
675 struct ip_vs_lblcr_table *tbl = svc->sched_data; in ip_vs_lblcr_done_svc()
684 kfree(svc->sched_data); in ip_vs_lblcr_done_svc()
692 static int ip_vs_lblcr_update_svc(struct ip_vs_service *svc) in ip_vs_lblcr_update_svc() argument
699 __ip_vs_wlc_schedule(struct ip_vs_service *svc, struct iphdr *iph) in __ip_vs_wlc_schedule() argument
723 l = &svc->destinations; in __ip_vs_wlc_schedule()
765 is_overloaded(struct ip_vs_dest *dest, struct ip_vs_service *svc) in is_overloaded() argument
771 l = &svc->destinations; in is_overloaded()
[all …]
/linux-2.4.37.9/net/atm/
Dsignaling.c169 const struct sockaddr_atmsvc *svc,const struct atm_qos *qos,int reply) in sigd_enq2() argument
185 if (svc) msg->svc = *svc; in sigd_enq2()
195 const struct sockaddr_atmsvc *svc) in sigd_enq() argument
197 sigd_enq2(vcc,type,listen_vcc,pvc,svc,vcc ? &vcc->qos : NULL,0); in sigd_enq()
Dsignaling.h27 const struct sockaddr_atmsvc *svc,const struct atm_qos *qos,int reply);
30 const struct sockaddr_atmsvc *svc);
Dproc.c128 int svc, llc, off; in atmarp_info() local
130 svc = ((clip_vcc == SEQ_NO_VCC_TOKEN) || in atmarp_info()
145 svc ? "SVC" : "PVC", in atmarp_info()
161 } else if (!svc) { in atmarp_info()
727 *svc = NULL, *arp = NULL, *lec = NULL, *vc = NULL; variable
735 if (svc) in atm_proc_cleanup()
753 CREATE_ENTRY(svc); in atm_proc_init()
/linux-2.4.37.9/include/net/
Dip_vs.h500 struct ip_vs_service *svc; /* service that it belongs to */ member
518 int (*init_service)(struct ip_vs_service *svc);
520 int (*done_service)(struct ip_vs_service *svc);
522 int (*update_service)(struct ip_vs_service *svc);
525 struct ip_vs_dest* (*schedule)(struct ip_vs_service *svc,
696 extern int ip_vs_bind_scheduler(struct ip_vs_service *svc,
698 extern int ip_vs_unbind_scheduler(struct ip_vs_service *svc);
717 static inline void ip_vs_service_put(struct ip_vs_service *svc) in ip_vs_service_put() argument
719 atomic_dec(&svc->usecnt); in ip_vs_service_put()
/linux-2.4.37.9/include/linux/
Dif_wanpipe.h46 unsigned char svc; member
119 unsigned char svc; /* 0=pvc, 1=svc */ member
Dif_wanpipe_common.h46 unsigned char svc; member
Datmsvc.h36 struct sockaddr_atmsvc svc; /* SVC address */ member
/linux-2.4.37.9/drivers/net/wan/
Dcycx_x25.c112 u8 svc; /* 0 - permanent, 1 - switched */ member
392 chan->svc = 1; in new_if()
439 if (chan->svc) { in del_if()
480 if (!chan->svc) in if_init()
581 if (!chan->svc) in if_send()
586 else if (chan->svc && chan->protocol && in if_send()
1301 if (chan->svc) { in chan_connect()
1325 if (chan->svc) { in chan_disconnect()
1356 if (chan->svc && chan->state == WAN_CONNECTED) in set_chan_state()
1382 if (chan->svc) { in set_chan_state()
[all …]
/linux-2.4.37.9/fs/lockd/
DMakefile14 obj-y := clntlock.o clntproc.o host.o svc.o svclock.o svcshare.o \
/linux-2.4.37.9/net/sunrpc/
DMakefile16 svc.o svcsock.o svcauth.o \
/linux-2.4.37.9/arch/s390/boot/
Dipldump.S21 .long 0x00000000,0x00000000 # svc old psw
29 .long 0x000a0000,0x00000060 # svc new psw
/linux-2.4.37.9/arch/s390x/boot/
Dipldump.S21 .long 0x00000000,0x00000000 # svc old psw
29 .long 0x000a0000,0x00000060 # svc new psw

12