/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 67 static void __ip_vs_del_service(struct ip_vs_service *svc, bool cleanup); 305 static int ip_vs_svc_hash(struct ip_vs_service *svc) in ip_vs_svc_hash() argument 309 if (svc->flags & IP_VS_SVC_F_HASHED) { in ip_vs_svc_hash() 315 if (svc->fwmark == 0) { in ip_vs_svc_hash() 319 hash = ip_vs_svc_hashkey(svc->ipvs, svc->af, svc->protocol, in ip_vs_svc_hash() 320 &svc->addr, svc->port); in ip_vs_svc_hash() 321 hlist_add_head_rcu(&svc->s_list, &ip_vs_svc_table[hash]); in ip_vs_svc_hash() 326 hash = ip_vs_svc_fwm_hashkey(svc->ipvs, svc->fwmark); in ip_vs_svc_hash() 327 hlist_add_head_rcu(&svc->f_list, &ip_vs_svc_fwm_table[hash]); in ip_vs_svc_hash() 330 svc->flags |= IP_VS_SVC_F_HASHED; in ip_vs_svc_hash() [all …]
|
D | ip_vs_mh.c | 123 struct ip_vs_service *svc) in ip_vs_mh_permutate() argument 138 p = &svc->destinations; in ip_vs_mh_permutate() 140 while ((p = p->next) != &svc->destinations) { in ip_vs_mh_permutate() 143 ds->offset = ip_vs_mh_hashkey(svc->af, &dest->addr, in ip_vs_mh_permutate() 146 ds->skip = ip_vs_mh_hashkey(svc->af, &dest->addr, in ip_vs_mh_permutate() 160 struct ip_vs_service *svc) in ip_vs_mh_populate() argument 182 p = &svc->destinations; in ip_vs_mh_populate() 186 if (p == &svc->destinations) in ip_vs_mh_populate() 190 while (p != &svc->destinations) { in ip_vs_mh_populate() 236 ip_vs_mh_get(struct ip_vs_service *svc, struct ip_vs_mh_state *s, in ip_vs_mh_get() argument [all …]
|
D | ip_vs_wrr.c | 69 static int ip_vs_wrr_gcd_weight(struct ip_vs_service *svc) in ip_vs_wrr_gcd_weight() argument 75 list_for_each_entry(dest, &svc->destinations, n_list) { in ip_vs_wrr_gcd_weight() 91 static int ip_vs_wrr_max_weight(struct ip_vs_service *svc) in ip_vs_wrr_max_weight() argument 96 list_for_each_entry(dest, &svc->destinations, n_list) { in ip_vs_wrr_max_weight() 106 static int ip_vs_wrr_init_svc(struct ip_vs_service *svc) in ip_vs_wrr_init_svc() argument 117 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc() 118 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc() 119 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc() 121 svc->sched_data = mark; in ip_vs_wrr_init_svc() 127 static void ip_vs_wrr_done_svc(struct ip_vs_service *svc) in ip_vs_wrr_done_svc() argument [all …]
|
D | ip_vs_lblc.c | 105 struct ip_vs_service *svc; /* pointer back to service */ member 229 static void ip_vs_lblc_flush(struct ip_vs_service *svc) in ip_vs_lblc_flush() argument 231 struct ip_vs_lblc_table *tbl = svc->sched_data; in ip_vs_lblc_flush() 236 spin_lock_bh(&svc->sched_lock); in ip_vs_lblc_flush() 244 spin_unlock_bh(&svc->sched_lock); in ip_vs_lblc_flush() 247 static int sysctl_lblc_expiration(struct ip_vs_service *svc) in sysctl_lblc_expiration() argument 250 return svc->ipvs->sysctl_lblc_expiration; in sysctl_lblc_expiration() 256 static inline void ip_vs_lblc_full_check(struct ip_vs_service *svc) in ip_vs_lblc_full_check() argument 258 struct ip_vs_lblc_table *tbl = svc->sched_data; in ip_vs_lblc_full_check() 267 spin_lock(&svc->sched_lock); in ip_vs_lblc_full_check() [all …]
|
D | ip_vs_rr.c | 26 static int ip_vs_rr_init_svc(struct ip_vs_service *svc) in ip_vs_rr_init_svc() argument 28 svc->sched_data = &svc->destinations; in ip_vs_rr_init_svc() 33 static int ip_vs_rr_del_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest) in ip_vs_rr_del_dest() argument 37 spin_lock_bh(&svc->sched_lock); in ip_vs_rr_del_dest() 38 p = (struct list_head *) svc->sched_data; in ip_vs_rr_del_dest() 43 svc->sched_data = p->next->prev; in ip_vs_rr_del_dest() 44 spin_unlock_bh(&svc->sched_lock); in ip_vs_rr_del_dest() 53 ip_vs_rr_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_rr_schedule() argument 62 spin_lock_bh(&svc->sched_lock); in ip_vs_rr_schedule() 63 p = (struct list_head *) svc->sched_data; in ip_vs_rr_schedule() [all …]
|
D | ip_vs_lblcr.c | 277 struct ip_vs_service *svc; /* pointer back to service */ member 395 static void ip_vs_lblcr_flush(struct ip_vs_service *svc) in ip_vs_lblcr_flush() argument 397 struct ip_vs_lblcr_table *tbl = svc->sched_data; in ip_vs_lblcr_flush() 402 spin_lock_bh(&svc->sched_lock); in ip_vs_lblcr_flush() 409 spin_unlock_bh(&svc->sched_lock); in ip_vs_lblcr_flush() 412 static int sysctl_lblcr_expiration(struct ip_vs_service *svc) in sysctl_lblcr_expiration() argument 415 return svc->ipvs->sysctl_lblcr_expiration; in sysctl_lblcr_expiration() 421 static inline void ip_vs_lblcr_full_check(struct ip_vs_service *svc) in ip_vs_lblcr_full_check() argument 423 struct ip_vs_lblcr_table *tbl = svc->sched_data; in ip_vs_lblcr_full_check() 432 spin_lock(&svc->sched_lock); in ip_vs_lblcr_full_check() [all …]
|
D | ip_vs_sched.c | 40 int ip_vs_bind_scheduler(struct ip_vs_service *svc, in ip_vs_bind_scheduler() argument 46 ret = scheduler->init_service(svc); in ip_vs_bind_scheduler() 52 rcu_assign_pointer(svc->scheduler, scheduler); in ip_vs_bind_scheduler() 60 void ip_vs_unbind_scheduler(struct ip_vs_service *svc, in ip_vs_unbind_scheduler() argument 65 cur_sched = rcu_dereference_protected(svc->scheduler, 1); in ip_vs_unbind_scheduler() 71 sched->done_service(svc); in ip_vs_unbind_scheduler() 143 void ip_vs_scheduler_err(struct ip_vs_service *svc, const char *msg) in ip_vs_scheduler_err() argument 145 struct ip_vs_scheduler *sched = rcu_dereference(svc->scheduler); in ip_vs_scheduler_err() 148 if (svc->fwmark) { in ip_vs_scheduler_err() 150 sched_name, svc->fwmark, svc->fwmark, msg); in ip_vs_scheduler_err() [all …]
|
D | ip_vs_sh.c | 104 ip_vs_sh_get(struct ip_vs_service *svc, struct ip_vs_sh_state *s, in ip_vs_sh_get() argument 107 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get() 121 ip_vs_sh_get_fallback(struct ip_vs_service *svc, struct ip_vs_sh_state *s, in ip_vs_sh_get_fallback() argument 129 ihash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get_fallback() 144 hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset); in ip_vs_sh_get_fallback() 163 ip_vs_sh_reassign(struct ip_vs_sh_state *s, struct ip_vs_service *svc) in ip_vs_sh_reassign() argument 173 p = &svc->destinations; in ip_vs_sh_reassign() 183 if (p == &svc->destinations) in ip_vs_sh_reassign() 228 static int ip_vs_sh_init_svc(struct ip_vs_service *svc) in ip_vs_sh_init_svc() argument 237 svc->sched_data = s; in ip_vs_sh_init_svc() [all …]
|
D | ip_vs_dh.c | 98 ip_vs_dh_reassign(struct ip_vs_dh_state *s, struct ip_vs_service *svc) in ip_vs_dh_reassign() argument 107 p = &svc->destinations; in ip_vs_dh_reassign() 116 if (p == &svc->destinations) in ip_vs_dh_reassign() 152 static int ip_vs_dh_init_svc(struct ip_vs_service *svc) in ip_vs_dh_init_svc() argument 161 svc->sched_data = s; in ip_vs_dh_init_svc() 167 ip_vs_dh_reassign(s, svc); in ip_vs_dh_init_svc() 173 static void ip_vs_dh_done_svc(struct ip_vs_service *svc) in ip_vs_dh_done_svc() argument 175 struct ip_vs_dh_state *s = svc->sched_data; in ip_vs_dh_done_svc() 187 static int ip_vs_dh_dest_changed(struct ip_vs_service *svc, in ip_vs_dh_dest_changed() argument 190 struct ip_vs_dh_state *s = svc->sched_data; in ip_vs_dh_dest_changed() [all …]
|
D | ip_vs_core.c | 141 struct ip_vs_service *svc; in ip_vs_in_stats() local 151 svc = rcu_dereference(dest->svc); in ip_vs_in_stats() 152 s = this_cpu_ptr(svc->stats.cpustats); in ip_vs_in_stats() 177 struct ip_vs_service *svc; in ip_vs_out_stats() local 187 svc = rcu_dereference(dest->svc); in ip_vs_out_stats() 188 s = this_cpu_ptr(svc->stats.cpustats); in ip_vs_out_stats() 206 ip_vs_conn_stats(struct ip_vs_conn *cp, struct ip_vs_service *svc) in ip_vs_conn_stats() argument 208 struct netns_ipvs *ipvs = svc->ipvs; in ip_vs_conn_stats() 218 s = this_cpu_ptr(svc->stats.cpustats); in ip_vs_conn_stats() 242 ip_vs_conn_fill_param_persist(const struct ip_vs_service *svc, in ip_vs_conn_fill_param_persist() argument [all …]
|
D | ip_vs_sed.c | 57 ip_vs_sed_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_sed_schedule() argument 78 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_sed_schedule() 86 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_sed_schedule() 93 list_for_each_entry_continue_rcu(dest, &svc->destinations, n_list) { in ip_vs_sed_schedule()
|
D | ip_vs_wlc.c | 29 ip_vs_wlc_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_wlc_schedule() argument 50 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_wlc_schedule() 58 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_wlc_schedule() 65 list_for_each_entry_continue_rcu(dest, &svc->destinations, n_list) { in ip_vs_wlc_schedule()
|
D | ip_vs_fo.c | 21 ip_vs_fo_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_fo_schedule() argument 32 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_fo_schedule() 49 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_fo_schedule()
|
D | ip_vs_ovf.c | 25 ip_vs_ovf_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_ovf_schedule() argument 35 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_ovf_schedule() 56 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_ovf_schedule()
|
D | ip_vs_lc.c | 24 ip_vs_lc_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_lc_schedule() argument 41 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_lc_schedule() 53 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_lc_schedule()
|
D | ip_vs_nq.c | 53 ip_vs_nq_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_nq_schedule() argument 74 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_nq_schedule() 98 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_nq_schedule()
|
D | ip_vs_proto_udp.c | 36 struct ip_vs_service *svc; in udp_conn_schedule() local 56 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in udp_conn_schedule() 59 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in udp_conn_schedule() 62 if (svc) { in udp_conn_schedule() 78 *cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph); in udp_conn_schedule() 81 *verdict = ip_vs_leave(svc, skb, pd, iph); in udp_conn_schedule()
|
D | ip_vs_proto_sctp.c | 21 struct ip_vs_service *svc; in sctp_conn_schedule() local 50 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in sctp_conn_schedule() 53 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in sctp_conn_schedule() 55 if (svc) { in sctp_conn_schedule() 70 *cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph); in sctp_conn_schedule() 73 *verdict = ip_vs_leave(svc, skb, pd, iph); in sctp_conn_schedule()
|
D | ip_vs_proto_tcp.c | 40 struct ip_vs_service *svc; in tcp_conn_schedule() local 68 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in tcp_conn_schedule() 71 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in tcp_conn_schedule() 74 if (svc) { in tcp_conn_schedule() 90 *cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph); in tcp_conn_schedule() 93 *verdict = ip_vs_leave(svc, skb, pd, iph); in tcp_conn_schedule()
|
D | ip_vs_pe_sip.c | 148 ip_vs_sip_conn_out(struct ip_vs_service *svc, in ip_vs_sip_conn_out() argument 156 return ip_vs_new_conn_out(svc, dest, skb, iph, dport, cport); in ip_vs_sip_conn_out()
|
/net/atm/ |
D | signaling.c | 144 const struct sockaddr_atmsvc *svc, const struct atm_qos *qos, in sigd_enq2() argument 163 if (svc) in sigd_enq2() 164 msg->svc = *svc; in sigd_enq2() 181 const struct sockaddr_atmsvc *svc) in sigd_enq() argument 183 sigd_enq2(vcc, type, listen_vcc, pvc, svc, vcc ? &vcc->qos : NULL, 0); in sigd_enq()
|
D | signaling.h | 25 const struct sockaddr_atmsvc *svc,const struct atm_qos *qos,int reply); 28 const struct sockaddr_atmsvc *svc);
|
D | Makefile | 6 atm-y := addr.o pvc.o signaling.o svc.o ioctl.o common.o atm_misc.o raw.o resources.o atm_sysfs.o
|
D | clip.c | 742 int svc, llc, off; in atmarp_info() local 744 svc = ((clip_vcc == SEQ_NO_VCC_TOKEN) || in atmarp_info() 757 dev->name, svc ? "SVC" : "PVC", llc ? "LLC" : "NULL", exp); in atmarp_info() 771 } else if (!svc) { in atmarp_info()
|
/net/sunrpc/ |
D | Makefile | 13 svc.o svcsock.o svcauth.o svcauth_unix.o \
|