Lines Matching refs:svc

687 	struct ip_vs_service __rcu *svc;	/* service it belongs to */  member
705 int (*init_service)(struct ip_vs_service *svc);
707 void (*done_service)(struct ip_vs_service *svc);
709 int (*add_dest)(struct ip_vs_service *svc, struct ip_vs_dest *dest);
711 int (*del_dest)(struct ip_vs_service *svc, struct ip_vs_dest *dest);
713 int (*upd_dest)(struct ip_vs_service *svc, struct ip_vs_dest *dest);
716 struct ip_vs_dest* (*schedule)(struct ip_vs_service *svc,
736 struct ip_vs_conn* (*conn_out)(struct ip_vs_service *svc,
1161 struct ip_vs_conn *ip_vs_new_conn_out(struct ip_vs_service *svc,
1383 int ip_vs_bind_scheduler(struct ip_vs_service *svc,
1385 void ip_vs_unbind_scheduler(struct ip_vs_service *svc,
1390 ip_vs_schedule(struct ip_vs_service *svc, struct sk_buff *skb,
1393 int ip_vs_leave(struct ip_vs_service *svc, struct sk_buff *skb,
1396 void ip_vs_scheduler_err(struct ip_vs_service *svc, const char *msg);
1644 static inline int ip_vs_register_conntrack(struct ip_vs_service *svc) in ip_vs_register_conntrack() argument
1647 int afmask = (svc->af == AF_INET6) ? 2 : 1; in ip_vs_register_conntrack()
1650 if (!(svc->conntrack_afmask & afmask)) { in ip_vs_register_conntrack()
1651 ret = nf_ct_netns_get(svc->ipvs->net, svc->af); in ip_vs_register_conntrack()
1653 svc->conntrack_afmask |= afmask; in ip_vs_register_conntrack()
1661 static inline void ip_vs_unregister_conntrack(struct ip_vs_service *svc) in ip_vs_unregister_conntrack() argument
1664 int afmask = (svc->af == AF_INET6) ? 2 : 1; in ip_vs_unregister_conntrack()
1666 if (svc->conntrack_afmask & afmask) { in ip_vs_unregister_conntrack()
1667 nf_ct_netns_put(svc->ipvs->net, svc->af); in ip_vs_unregister_conntrack()
1668 svc->conntrack_afmask &= ~afmask; in ip_vs_unregister_conntrack()