]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPVS]: Fix sysctl warnings about missing strategy in schedulers
authorSimon Horman <horms@verge.net.au>
Tue, 20 Nov 2007 05:50:21 +0000 (21:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Nov 2007 05:50:21 +0000 (21:50 -0800)
sysctl table check failed: /net/ipv4/vs/lblc_expiration .3.5.21.19 Missing strategy
[...]
sysctl table check failed: /net/ipv4/vs/lblcr_expiration .3.5.21.20 Missing strategy

Switch these entried over to use CTL_UNNUMBERED as clearly
the sys_syscal portion wasn't working.

This is along the same lines as Christian Borntraeger's patch that fixes
up entries with no stratergy in net/ipv4/ipvs/ip_vs_ctl.c

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_vs.h
kernel/sysctl_check.c
net/ipv4/ipvs/ip_vs_lblc.c
net/ipv4/ipvs/ip_vs_lblcr.c

index b362c8c1497954da6d14ce9df74bfe01196d42fd..f1c41eede9938ba964b5661ee0669c701d10a9a5 100644 (file)
@@ -348,8 +348,6 @@ enum {
        NET_IPV4_VS_TO_SA=16,
        NET_IPV4_VS_TO_UDP=17,
        NET_IPV4_VS_TO_ICMP=18,
-       NET_IPV4_VS_LBLC_EXPIRE=19,
-       NET_IPV4_VS_LBLCR_EXPIRE=20,
        NET_IPV4_VS_CACHE_BYPASS=22,
        NET_IPV4_VS_EXPIRE_NODEST_CONN=23,
        NET_IPV4_VS_NAT_ICMP_SEND=25,
index 9e1749760371940e2ab91c24a0f5ee6468279ea5..cffb4adf138a3defb88d00004e79c2c645738727 100644 (file)
@@ -258,8 +258,6 @@ static struct trans_ctl_table trans_net_ipv4_vs_table[] = {
        { NET_IPV4_VS_EXPIRE_NODEST_CONN,       "expire_nodest_conn" },
        { NET_IPV4_VS_EXPIRE_QUIESCENT_TEMPLATE,        "expire_quiescent_template" },
        { NET_IPV4_VS_NAT_ICMP_SEND,    "nat_icmp_send" },
-       { NET_IPV4_VS_LBLC_EXPIRE,              "lblc_expiration" },
-       { NET_IPV4_VS_LBLCR_EXPIRE,             "lblcr_expiration" },
        {}
 };
 
index 052f4ed59174ac0b40012712e33e06fabe0a72cb..7159f9c18f727230b74b64f12ed8f1c85843993b 100644 (file)
@@ -114,7 +114,6 @@ struct ip_vs_lblc_table {
 
 static ctl_table vs_vars_table[] = {
        {
-               .ctl_name       = NET_IPV4_VS_LBLC_EXPIRE,
                .procname       = "lblc_expiration",
                .data           = &sysctl_ip_vs_lblc_expiration,
                .maxlen         = sizeof(int),
index 427b593c1069b82bab52215a16767db96fe6ae91..96d9b818d99ddf0452da336b2b5296b91985dd5c 100644 (file)
@@ -302,7 +302,6 @@ struct ip_vs_lblcr_table {
 
 static ctl_table vs_vars_table[] = {
        {
-               .ctl_name       = NET_IPV4_VS_LBLCR_EXPIRE,
                .procname       = "lblcr_expiration",
                .data           = &sysctl_ip_vs_lblcr_expiration,
                .maxlen         = sizeof(int),