Lines Matching refs:svc

96 		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()
140 svc->stats.conns++; in ip_vs_conn_stats()
141 spin_unlock(&svc->stats.lock); in ip_vs_conn_stats()
155 ip_vs_sched_persist(struct ip_vs_service *svc, struct iphdr *iph) in ip_vs_sched_persist() argument
167 snet = iph->saddr & svc->netmask; in ip_vs_sched_persist()
188 if (portp[1] == svc->port) { in ip_vs_sched_persist()
190 if (svc->port != FTPPORT) in ip_vs_sched_persist()
202 dest = svc->scheduler->schedule(svc, iph); in ip_vs_sched_persist()
214 if (svc->port != FTPPORT) in ip_vs_sched_persist()
231 ct->timeout = svc->timeout; in ip_vs_sched_persist()
244 if (svc->fwmark) in ip_vs_sched_persist()
246 htonl(svc->fwmark), 0); in ip_vs_sched_persist()
256 if (svc->port) in ip_vs_sched_persist()
259 dest = svc->scheduler->schedule(svc, iph); in ip_vs_sched_persist()
268 if (svc->fwmark) in ip_vs_sched_persist()
271 htonl(svc->fwmark), 0, in ip_vs_sched_persist()
285 ct->timeout = svc->timeout; in ip_vs_sched_persist()
330 ip_vs_schedule(struct ip_vs_service *svc, struct iphdr *iph) in ip_vs_schedule() argument
339 if (svc->flags & IP_VS_SVC_F_PERSISTENT) in ip_vs_schedule()
340 return ip_vs_sched_persist(svc, iph); in ip_vs_schedule()
346 if (!svc->fwmark && portp[1] != svc->port) { in ip_vs_schedule()
347 if (!svc->port) in ip_vs_schedule()
354 dest = svc->scheduler->schedule(svc, iph); in ip_vs_schedule()
395 static int ip_vs_leave(struct ip_vs_service *svc, struct sk_buff *skb) in ip_vs_leave() argument
403 if (sysctl_ip_vs_cache_bypass && svc->fwmark in ip_vs_leave()
408 ip_vs_service_put(svc); in ip_vs_leave()
443 if ((svc->port == FTPPORT) && (portp[1] != FTPPORT)) { in ip_vs_leave()
444 ip_vs_service_put(svc); in ip_vs_leave()
448 ip_vs_service_put(svc); in ip_vs_leave()
1031 struct ip_vs_service *svc; in ip_vs_in() local
1070 (svc = ip_vs_service_get(skb->nfmark, iph->protocol, in ip_vs_in()
1077 ip_vs_service_put(svc); in ip_vs_in()
1085 cp = ip_vs_schedule(svc, iph); in ip_vs_in()
1087 return ip_vs_leave(svc, skb); in ip_vs_in()
1088 ip_vs_conn_stats(cp, svc); in ip_vs_in()
1089 ip_vs_service_put(svc); in ip_vs_in()