diff options
| -rw-r--r-- | include/net/ip_vs.h | 2 | ||||
| -rw-r--r-- | net/netfilter/ipvs/ip_vs_proto.c | 22 | ||||
| -rw-r--r-- | net/netfilter/ipvs/ip_vs_sync.c | 2 |
3 files changed, 1 insertions, 25 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 632082300e77..4f4f786255ef 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
| @@ -1349,8 +1349,6 @@ int ip_vs_protocol_init(void); | |||
| 1349 | void ip_vs_protocol_cleanup(void); | 1349 | void ip_vs_protocol_cleanup(void); |
| 1350 | void ip_vs_protocol_timeout_change(struct netns_ipvs *ipvs, int flags); | 1350 | void ip_vs_protocol_timeout_change(struct netns_ipvs *ipvs, int flags); |
| 1351 | int *ip_vs_create_timeout_table(int *table, int size); | 1351 | int *ip_vs_create_timeout_table(int *table, int size); |
| 1352 | int ip_vs_set_state_timeout(int *table, int num, const char *const *names, | ||
| 1353 | const char *name, int to); | ||
| 1354 | void ip_vs_tcpudp_debug_packet(int af, struct ip_vs_protocol *pp, | 1352 | void ip_vs_tcpudp_debug_packet(int af, struct ip_vs_protocol *pp, |
| 1355 | const struct sk_buff *skb, int offset, | 1353 | const struct sk_buff *skb, int offset, |
| 1356 | const char *msg); | 1354 | const char *msg); |
diff --git a/net/netfilter/ipvs/ip_vs_proto.c b/net/netfilter/ipvs/ip_vs_proto.c index 8ae480715cea..ca880a3ad033 100644 --- a/net/netfilter/ipvs/ip_vs_proto.c +++ b/net/netfilter/ipvs/ip_vs_proto.c | |||
| @@ -193,28 +193,6 @@ ip_vs_create_timeout_table(int *table, int size) | |||
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | 195 | ||
| 196 | /* | ||
| 197 | * Set timeout value for state specified by name | ||
| 198 | */ | ||
| 199 | int | ||
| 200 | ip_vs_set_state_timeout(int *table, int num, const char *const *names, | ||
| 201 | const char *name, int to) | ||
| 202 | { | ||
| 203 | int i; | ||
| 204 | |||
| 205 | if (!table || !name || !to) | ||
| 206 | return -EINVAL; | ||
| 207 | |||
| 208 | for (i = 0; i < num; i++) { | ||
| 209 | if (strcmp(names[i], name)) | ||
| 210 | continue; | ||
| 211 | table[i] = to * HZ; | ||
| 212 | return 0; | ||
| 213 | } | ||
| 214 | return -ENOENT; | ||
| 215 | } | ||
| 216 | |||
| 217 | |||
| 218 | const char * ip_vs_state_name(__u16 proto, int state) | 196 | const char * ip_vs_state_name(__u16 proto, int state) |
| 219 | { | 197 | { |
| 220 | struct ip_vs_protocol *pp = ip_vs_proto_get(proto); | 198 | struct ip_vs_protocol *pp = ip_vs_proto_get(proto); |
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index 30d6b2cc00a0..0e5b64a75da0 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +++ b/net/netfilter/ipvs/ip_vs_sync.c | |||
| @@ -520,7 +520,7 @@ static int ip_vs_sync_conn_needed(struct netns_ipvs *ipvs, | |||
| 520 | if (!(cp->flags & IP_VS_CONN_F_TEMPLATE) && | 520 | if (!(cp->flags & IP_VS_CONN_F_TEMPLATE) && |
| 521 | pkts % sync_period != sysctl_sync_threshold(ipvs)) | 521 | pkts % sync_period != sysctl_sync_threshold(ipvs)) |
| 522 | return 0; | 522 | return 0; |
| 523 | } else if (sync_refresh_period <= 0 && | 523 | } else if (!sync_refresh_period && |
| 524 | pkts != sysctl_sync_threshold(ipvs)) | 524 | pkts != sysctl_sync_threshold(ipvs)) |
| 525 | return 0; | 525 | return 0; |
| 526 | 526 | ||
