Lines Matching refs:svc
685 struct ip_vs_service __rcu *svc; /* service it belongs to */ member
703 int (*init_service)(struct ip_vs_service *svc);
705 void (*done_service)(struct ip_vs_service *svc);
707 int (*add_dest)(struct ip_vs_service *svc, struct ip_vs_dest *dest);
709 int (*del_dest)(struct ip_vs_service *svc, struct ip_vs_dest *dest);
711 int (*upd_dest)(struct ip_vs_service *svc, struct ip_vs_dest *dest);
714 struct ip_vs_dest* (*schedule)(struct ip_vs_service *svc,
734 struct ip_vs_conn* (*conn_out)(struct ip_vs_service *svc,
1184 struct ip_vs_conn *ip_vs_new_conn_out(struct ip_vs_service *svc,
1406 int ip_vs_bind_scheduler(struct ip_vs_service *svc,
1408 void ip_vs_unbind_scheduler(struct ip_vs_service *svc,
1413 ip_vs_schedule(struct ip_vs_service *svc, struct sk_buff *skb,
1416 int ip_vs_leave(struct ip_vs_service *svc, struct sk_buff *skb,
1419 void ip_vs_scheduler_err(struct ip_vs_service *svc, const char *msg);
1681 static inline int ip_vs_register_conntrack(struct ip_vs_service *svc) in ip_vs_register_conntrack() argument
1684 int afmask = (svc->af == AF_INET6) ? 2 : 1; in ip_vs_register_conntrack()
1687 if (!(svc->conntrack_afmask & afmask)) { in ip_vs_register_conntrack()
1688 ret = nf_ct_netns_get(svc->ipvs->net, svc->af); in ip_vs_register_conntrack()
1690 svc->conntrack_afmask |= afmask; in ip_vs_register_conntrack()
1698 static inline void ip_vs_unregister_conntrack(struct ip_vs_service *svc) in ip_vs_unregister_conntrack() argument
1701 int afmask = (svc->af == AF_INET6) ? 2 : 1; in ip_vs_unregister_conntrack()
1703 if (svc->conntrack_afmask & afmask) { in ip_vs_unregister_conntrack()
1704 nf_ct_netns_put(svc->ipvs->net, svc->af); in ip_vs_unregister_conntrack()
1705 svc->conntrack_afmask &= ~afmask; in ip_vs_unregister_conntrack()