Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'ipvs3-for-v4.12' of http://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs-next

Simon Horman says:

====================
Third Round of IPVS Updates for v4.12

please consider these enhancements to IPVS for v4.12.
If it is too late for v4.12 then please consider them for v4.13.

* Remove unused function
* Correct comparison of unsigned value
====================

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

+1 -25
-2
include/net/ip_vs.h
··· 1349 1349 void ip_vs_protocol_cleanup(void); 1350 1350 void ip_vs_protocol_timeout_change(struct netns_ipvs *ipvs, int flags); 1351 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 1352 void ip_vs_tcpudp_debug_packet(int af, struct ip_vs_protocol *pp, 1355 1353 const struct sk_buff *skb, int offset, 1356 1354 const char *msg);
-22
net/netfilter/ipvs/ip_vs_proto.c
··· 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 196 const char * ip_vs_state_name(__u16 proto, int state) 219 197 { 220 198 struct ip_vs_protocol *pp = ip_vs_proto_get(proto);
+1 -1
net/netfilter/ipvs/ip_vs_sync.c
··· 520 520 if (!(cp->flags & IP_VS_CONN_F_TEMPLATE) && 521 521 pkts % sync_period != sysctl_sync_threshold(ipvs)) 522 522 return 0; 523 - } else if (sync_refresh_period <= 0 && 523 + } else if (!sync_refresh_period && 524 524 pkts != sysctl_sync_threshold(ipvs)) 525 525 return 0; 526 526