Home
last modified time | relevance | path

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

/net/netfilter/ipvs/
Dip_vs_ctl.c71 static void __ip_vs_del_service(struct ip_vs_service *svc, bool cleanup);
298 static int ip_vs_svc_hash(struct ip_vs_service *svc) in ip_vs_svc_hash() argument
302 if (svc->flags & IP_VS_SVC_F_HASHED) { in ip_vs_svc_hash()
308 if (svc->fwmark == 0) { in ip_vs_svc_hash()
312 hash = ip_vs_svc_hashkey(svc->net, svc->af, svc->protocol, in ip_vs_svc_hash()
313 &svc->addr, svc->port); in ip_vs_svc_hash()
314 hlist_add_head_rcu(&svc->s_list, &ip_vs_svc_table[hash]); in ip_vs_svc_hash()
319 hash = ip_vs_svc_fwm_hashkey(svc->net, svc->fwmark); in ip_vs_svc_hash()
320 hlist_add_head_rcu(&svc->f_list, &ip_vs_svc_fwm_table[hash]); in ip_vs_svc_hash()
323 svc->flags |= IP_VS_SVC_F_HASHED; in ip_vs_svc_hash()
[all …]
Dip_vs_wrr.c74 static int ip_vs_wrr_gcd_weight(struct ip_vs_service *svc) in ip_vs_wrr_gcd_weight() argument
80 list_for_each_entry(dest, &svc->destinations, n_list) { in ip_vs_wrr_gcd_weight()
96 static int ip_vs_wrr_max_weight(struct ip_vs_service *svc) in ip_vs_wrr_max_weight() argument
101 list_for_each_entry(dest, &svc->destinations, n_list) { in ip_vs_wrr_max_weight()
111 static int ip_vs_wrr_init_svc(struct ip_vs_service *svc) in ip_vs_wrr_init_svc() argument
122 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc()
123 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc()
124 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc()
126 svc->sched_data = mark; in ip_vs_wrr_init_svc()
132 static void ip_vs_wrr_done_svc(struct ip_vs_service *svc) in ip_vs_wrr_done_svc() argument
[all …]
Dip_vs_rr.c31 static int ip_vs_rr_init_svc(struct ip_vs_service *svc) in ip_vs_rr_init_svc() argument
33 svc->sched_data = &svc->destinations; in ip_vs_rr_init_svc()
38 static int ip_vs_rr_del_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest) in ip_vs_rr_del_dest() argument
42 spin_lock_bh(&svc->sched_lock); in ip_vs_rr_del_dest()
43 p = (struct list_head *) svc->sched_data; in ip_vs_rr_del_dest()
48 svc->sched_data = p->next->prev; in ip_vs_rr_del_dest()
49 spin_unlock_bh(&svc->sched_lock); in ip_vs_rr_del_dest()
58 ip_vs_rr_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_rr_schedule() argument
67 spin_lock_bh(&svc->sched_lock); in ip_vs_rr_schedule()
68 p = (struct list_head *) svc->sched_data; in ip_vs_rr_schedule()
[all …]
Dip_vs_lblc.c232 static void ip_vs_lblc_flush(struct ip_vs_service *svc) in ip_vs_lblc_flush() argument
234 struct ip_vs_lblc_table *tbl = svc->sched_data; in ip_vs_lblc_flush()
239 spin_lock_bh(&svc->sched_lock); in ip_vs_lblc_flush()
247 spin_unlock_bh(&svc->sched_lock); in ip_vs_lblc_flush()
250 static int sysctl_lblc_expiration(struct ip_vs_service *svc) in sysctl_lblc_expiration() argument
253 struct netns_ipvs *ipvs = net_ipvs(svc->net); in sysctl_lblc_expiration()
260 static inline void ip_vs_lblc_full_check(struct ip_vs_service *svc) in ip_vs_lblc_full_check() argument
262 struct ip_vs_lblc_table *tbl = svc->sched_data; in ip_vs_lblc_full_check()
271 spin_lock(&svc->sched_lock); in ip_vs_lblc_full_check()
275 sysctl_lblc_expiration(svc))) in ip_vs_lblc_full_check()
[all …]
Dip_vs_sched.c45 int ip_vs_bind_scheduler(struct ip_vs_service *svc, in ip_vs_bind_scheduler() argument
51 ret = scheduler->init_service(svc); in ip_vs_bind_scheduler()
57 rcu_assign_pointer(svc->scheduler, scheduler); in ip_vs_bind_scheduler()
65 void ip_vs_unbind_scheduler(struct ip_vs_service *svc, in ip_vs_unbind_scheduler() argument
70 cur_sched = rcu_dereference_protected(svc->scheduler, 1); in ip_vs_unbind_scheduler()
76 sched->done_service(svc); in ip_vs_unbind_scheduler()
149 void ip_vs_scheduler_err(struct ip_vs_service *svc, const char *msg) in ip_vs_scheduler_err() argument
151 struct ip_vs_scheduler *sched = rcu_dereference(svc->scheduler); in ip_vs_scheduler_err()
154 if (svc->fwmark) { in ip_vs_scheduler_err()
156 sched_name, svc->fwmark, svc->fwmark, msg); in ip_vs_scheduler_err()
[all …]
Dip_vs_lblcr.c398 static void ip_vs_lblcr_flush(struct ip_vs_service *svc) in ip_vs_lblcr_flush() argument
400 struct ip_vs_lblcr_table *tbl = svc->sched_data; in ip_vs_lblcr_flush()
405 spin_lock_bh(&svc->sched_lock); in ip_vs_lblcr_flush()
412 spin_unlock_bh(&svc->sched_lock); in ip_vs_lblcr_flush()
415 static int sysctl_lblcr_expiration(struct ip_vs_service *svc) in sysctl_lblcr_expiration() argument
418 struct netns_ipvs *ipvs = net_ipvs(svc->net); in sysctl_lblcr_expiration()
425 static inline void ip_vs_lblcr_full_check(struct ip_vs_service *svc) in ip_vs_lblcr_full_check() argument
427 struct ip_vs_lblcr_table *tbl = svc->sched_data; in ip_vs_lblcr_full_check()
436 spin_lock(&svc->sched_lock); in ip_vs_lblcr_full_check()
439 sysctl_lblcr_expiration(svc), now)) in ip_vs_lblcr_full_check()
[all …]
Dip_vs_sh.c108 ip_vs_sh_get(struct ip_vs_service *svc, struct ip_vs_sh_state *s, in ip_vs_sh_get() argument
111 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get()
125 ip_vs_sh_get_fallback(struct ip_vs_service *svc, struct ip_vs_sh_state *s, in ip_vs_sh_get_fallback() argument
133 ihash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get_fallback()
148 hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset); in ip_vs_sh_get_fallback()
167 ip_vs_sh_reassign(struct ip_vs_sh_state *s, struct ip_vs_service *svc) in ip_vs_sh_reassign() argument
177 p = &svc->destinations; in ip_vs_sh_reassign()
187 if (p == &svc->destinations) in ip_vs_sh_reassign()
232 static int ip_vs_sh_init_svc(struct ip_vs_service *svc) in ip_vs_sh_init_svc() argument
241 svc->sched_data = s; in ip_vs_sh_init_svc()
[all …]
Dip_vs_dh.c102 ip_vs_dh_reassign(struct ip_vs_dh_state *s, struct ip_vs_service *svc) in ip_vs_dh_reassign() argument
111 p = &svc->destinations; in ip_vs_dh_reassign()
120 if (p == &svc->destinations) in ip_vs_dh_reassign()
156 static int ip_vs_dh_init_svc(struct ip_vs_service *svc) in ip_vs_dh_init_svc() argument
165 svc->sched_data = s; in ip_vs_dh_init_svc()
171 ip_vs_dh_reassign(s, svc); in ip_vs_dh_init_svc()
177 static void ip_vs_dh_done_svc(struct ip_vs_service *svc) in ip_vs_dh_done_svc() argument
179 struct ip_vs_dh_state *s = svc->sched_data; in ip_vs_dh_done_svc()
191 static int ip_vs_dh_dest_changed(struct ip_vs_service *svc, in ip_vs_dh_dest_changed() argument
194 struct ip_vs_dh_state *s = svc->sched_data; in ip_vs_dh_dest_changed()
[all …]
Dip_vs_core.c119 struct ip_vs_service *svc; in ip_vs_in_stats() local
128 svc = rcu_dereference(dest->svc); in ip_vs_in_stats()
129 s = this_cpu_ptr(svc->stats.cpustats); in ip_vs_in_stats()
153 struct ip_vs_service *svc; in ip_vs_out_stats() local
162 svc = rcu_dereference(dest->svc); in ip_vs_out_stats()
163 s = this_cpu_ptr(svc->stats.cpustats); in ip_vs_out_stats()
180 ip_vs_conn_stats(struct ip_vs_conn *cp, struct ip_vs_service *svc) in ip_vs_conn_stats() argument
182 struct netns_ipvs *ipvs = net_ipvs(svc->net); in ip_vs_conn_stats()
188 s = this_cpu_ptr(svc->stats.cpustats); in ip_vs_conn_stats()
206 ip_vs_conn_fill_param_persist(const struct ip_vs_service *svc, in ip_vs_conn_fill_param_persist() argument
[all …]
Dip_vs_wlc.c34 ip_vs_wlc_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_wlc_schedule() argument
55 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_wlc_schedule()
63 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_wlc_schedule()
70 list_for_each_entry_continue_rcu(dest, &svc->destinations, n_list) { in ip_vs_wlc_schedule()
Dip_vs_sed.c62 ip_vs_sed_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_sed_schedule() argument
83 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_sed_schedule()
91 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_sed_schedule()
98 list_for_each_entry_continue_rcu(dest, &svc->destinations, n_list) { in ip_vs_sed_schedule()
Dip_vs_fo.c26 ip_vs_fo_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_fo_schedule() argument
37 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_fo_schedule()
54 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_fo_schedule()
Dip_vs_lc.c29 ip_vs_lc_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_lc_schedule() argument
46 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_lc_schedule()
58 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_lc_schedule()
Dip_vs_nq.c58 ip_vs_nq_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_nq_schedule() argument
79 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_nq_schedule()
103 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_nq_schedule()
Dip_vs_proto_udp.c37 struct ip_vs_service *svc; in udp_conn_schedule() local
48 svc = ip_vs_service_find(net, af, skb->mark, iph->protocol, in udp_conn_schedule()
50 if (svc) { in udp_conn_schedule()
67 *cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph); in udp_conn_schedule()
70 *verdict = ip_vs_leave(svc, skb, pd, iph); in udp_conn_schedule()
Dip_vs_proto_sctp.c17 struct ip_vs_service *svc; in sctp_conn_schedule() local
39 (svc = ip_vs_service_find(net, af, skb->mark, iph->protocol, in sctp_conn_schedule()
56 *cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph); in sctp_conn_schedule()
59 *verdict = ip_vs_leave(svc, skb, pd, iph); in sctp_conn_schedule()
Dip_vs_proto_tcp.c40 struct ip_vs_service *svc; in tcp_conn_schedule() local
54 (svc = ip_vs_service_find(net, af, skb->mark, iph->protocol, in tcp_conn_schedule()
72 *cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph); in tcp_conn_schedule()
75 *verdict = ip_vs_leave(svc, skb, pd, iph); in tcp_conn_schedule()
/net/atm/
Dsignaling.c164 const struct sockaddr_atmsvc *svc, const struct atm_qos *qos, in sigd_enq2() argument
184 if (svc) in sigd_enq2()
185 msg->svc = *svc; in sigd_enq2()
202 const struct sockaddr_atmsvc *svc) in sigd_enq() argument
204 sigd_enq2(vcc, type, listen_vcc, pvc, svc, vcc ? &vcc->qos : NULL, 0); in sigd_enq()
Dsignaling.h24 const struct sockaddr_atmsvc *svc,const struct atm_qos *qos,int reply);
27 const struct sockaddr_atmsvc *svc);
DMakefile5 atm-y := addr.o pvc.o signaling.o svc.o ioctl.o common.o atm_misc.o raw.o resources.o atm_sysfs.o
Dclip.c739 int svc, llc, off; in atmarp_info() local
741 svc = ((clip_vcc == SEQ_NO_VCC_TOKEN) || in atmarp_info()
754 dev->name, svc ? "SVC" : "PVC", llc ? "LLC" : "NULL", exp); in atmarp_info()
768 } else if (!svc) { in atmarp_info()
Dsvc.c375 new_vcc->remote = msg->svc; in svc_accept()
/net/sunrpc/
DMakefile13 svc.o svcsock.o svcauth.o svcauth_unix.o \
/net/sunrpc/auth_gss/
Dsvcauth_gss.c751 find_gss_auth_domain(struct gss_ctx *ctx, u32 svc) in find_gss_auth_domain() argument
755 name = gss_service_to_auth_domain_name(ctx->mech_type, svc); in find_gss_auth_domain()