aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_vs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r--include/net/ip_vs.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index e0b7f139aa88..9d1f510ab6d0 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -788,6 +788,7 @@ struct ip_vs_app {
788/* IPVS in network namespace */ 788/* IPVS in network namespace */
789struct netns_ipvs { 789struct netns_ipvs {
790 int gen; /* Generation */ 790 int gen; /* Generation */
791 int enable; /* enable like nf_hooks do */
791 /* 792 /*
792 * Hash table: for real service lookups 793 * Hash table: for real service lookups
793 */ 794 */
@@ -1086,6 +1087,22 @@ ip_vs_control_add(struct ip_vs_conn *cp, struct ip_vs_conn *ctl_cp)
1086 atomic_inc(&ctl_cp->n_control); 1087 atomic_inc(&ctl_cp->n_control);
1087} 1088}
1088 1089
1090/*
1091 * IPVS netns init & cleanup functions
1092 */
1093extern int __ip_vs_estimator_init(struct net *net);
1094extern int __ip_vs_control_init(struct net *net);
1095extern int __ip_vs_protocol_init(struct net *net);
1096extern int __ip_vs_app_init(struct net *net);
1097extern int __ip_vs_conn_init(struct net *net);
1098extern int __ip_vs_sync_init(struct net *net);
1099extern void __ip_vs_conn_cleanup(struct net *net);
1100extern void __ip_vs_app_cleanup(struct net *net);
1101extern void __ip_vs_protocol_cleanup(struct net *net);
1102extern void __ip_vs_control_cleanup(struct net *net);
1103extern void __ip_vs_estimator_cleanup(struct net *net);
1104extern void __ip_vs_sync_cleanup(struct net *net);
1105extern void __ip_vs_service_cleanup(struct net *net);
1089 1106
1090/* 1107/*
1091 * IPVS application functions 1108 * IPVS application functions