diff options
author | Simon Horman <horms@verge.net.au> | 2007-11-20 00:51:13 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-20 00:51:13 -0500 |
commit | 9055fa1f3ded5ad858a55ae18439ed55227ee7eb (patch) | |
tree | d8ea30e4b8b53f3f6e47cb6c2823fc84d40bea60 /net/ipv4/ipvs | |
parent | 9e103fa6bd53147e228e941256803a6b8927cdb9 (diff) |
[IPVS]: Move remaining sysctl handlers over to CTL_UNNUMBERED
Switch the remaining IPVS sysctl entries over to to use CTL_UNNUMBERED,
I stronly doubt that anyone is using the sys_sysctl interface to
these variables.
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipvs')
-rw-r--r-- | net/ipv4/ipvs/ip_vs_ctl.c | 20 | ||||
-rw-r--r-- | net/ipv4/ipvs/ip_vs_lblc.c | 1 | ||||
-rw-r--r-- | net/ipv4/ipvs/ip_vs_lblcr.c | 1 |
3 files changed, 0 insertions, 22 deletions
diff --git a/net/ipv4/ipvs/ip_vs_ctl.c b/net/ipv4/ipvs/ip_vs_ctl.c index 06b8ae0e9c50..693d92490c11 100644 --- a/net/ipv4/ipvs/ip_vs_ctl.c +++ b/net/ipv4/ipvs/ip_vs_ctl.c | |||
@@ -1424,7 +1424,6 @@ proc_do_sync_threshold(ctl_table *table, int write, struct file *filp, | |||
1424 | 1424 | ||
1425 | static struct ctl_table vs_vars[] = { | 1425 | static struct ctl_table vs_vars[] = { |
1426 | { | 1426 | { |
1427 | .ctl_name = NET_IPV4_VS_AMEMTHRESH, | ||
1428 | .procname = "amemthresh", | 1427 | .procname = "amemthresh", |
1429 | .data = &sysctl_ip_vs_amemthresh, | 1428 | .data = &sysctl_ip_vs_amemthresh, |
1430 | .maxlen = sizeof(int), | 1429 | .maxlen = sizeof(int), |
@@ -1433,7 +1432,6 @@ static struct ctl_table vs_vars[] = { | |||
1433 | }, | 1432 | }, |
1434 | #ifdef CONFIG_IP_VS_DEBUG | 1433 | #ifdef CONFIG_IP_VS_DEBUG |
1435 | { | 1434 | { |
1436 | .ctl_name = NET_IPV4_VS_DEBUG_LEVEL, | ||
1437 | .procname = "debug_level", | 1435 | .procname = "debug_level", |
1438 | .data = &sysctl_ip_vs_debug_level, | 1436 | .data = &sysctl_ip_vs_debug_level, |
1439 | .maxlen = sizeof(int), | 1437 | .maxlen = sizeof(int), |
@@ -1442,7 +1440,6 @@ static struct ctl_table vs_vars[] = { | |||
1442 | }, | 1440 | }, |
1443 | #endif | 1441 | #endif |
1444 | { | 1442 | { |
1445 | .ctl_name = NET_IPV4_VS_AMDROPRATE, | ||
1446 | .procname = "am_droprate", | 1443 | .procname = "am_droprate", |
1447 | .data = &sysctl_ip_vs_am_droprate, | 1444 | .data = &sysctl_ip_vs_am_droprate, |
1448 | .maxlen = sizeof(int), | 1445 | .maxlen = sizeof(int), |
@@ -1472,7 +1469,6 @@ static struct ctl_table vs_vars[] = { | |||
1472 | }, | 1469 | }, |
1473 | #if 0 | 1470 | #if 0 |
1474 | { | 1471 | { |
1475 | .ctl_name = NET_IPV4_VS_TO_ES, | ||
1476 | .procname = "timeout_established", | 1472 | .procname = "timeout_established", |
1477 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_ESTABLISHED], | 1473 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_ESTABLISHED], |
1478 | .maxlen = sizeof(int), | 1474 | .maxlen = sizeof(int), |
@@ -1480,7 +1476,6 @@ static struct ctl_table vs_vars[] = { | |||
1480 | .proc_handler = &proc_dointvec_jiffies, | 1476 | .proc_handler = &proc_dointvec_jiffies, |
1481 | }, | 1477 | }, |
1482 | { | 1478 | { |
1483 | .ctl_name = NET_IPV4_VS_TO_SS, | ||
1484 | .procname = "timeout_synsent", | 1479 | .procname = "timeout_synsent", |
1485 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_SYN_SENT], | 1480 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_SYN_SENT], |
1486 | .maxlen = sizeof(int), | 1481 | .maxlen = sizeof(int), |
@@ -1488,7 +1483,6 @@ static struct ctl_table vs_vars[] = { | |||
1488 | .proc_handler = &proc_dointvec_jiffies, | 1483 | .proc_handler = &proc_dointvec_jiffies, |
1489 | }, | 1484 | }, |
1490 | { | 1485 | { |
1491 | .ctl_name = NET_IPV4_VS_TO_SR, | ||
1492 | .procname = "timeout_synrecv", | 1486 | .procname = "timeout_synrecv", |
1493 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_SYN_RECV], | 1487 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_SYN_RECV], |
1494 | .maxlen = sizeof(int), | 1488 | .maxlen = sizeof(int), |
@@ -1496,7 +1490,6 @@ static struct ctl_table vs_vars[] = { | |||
1496 | .proc_handler = &proc_dointvec_jiffies, | 1490 | .proc_handler = &proc_dointvec_jiffies, |
1497 | }, | 1491 | }, |
1498 | { | 1492 | { |
1499 | .ctl_name = NET_IPV4_VS_TO_FW, | ||
1500 | .procname = "timeout_finwait", | 1493 | .procname = "timeout_finwait", |
1501 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_FIN_WAIT], | 1494 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_FIN_WAIT], |
1502 | .maxlen = sizeof(int), | 1495 | .maxlen = sizeof(int), |
@@ -1504,7 +1497,6 @@ static struct ctl_table vs_vars[] = { | |||
1504 | .proc_handler = &proc_dointvec_jiffies, | 1497 | .proc_handler = &proc_dointvec_jiffies, |
1505 | }, | 1498 | }, |
1506 | { | 1499 | { |
1507 | .ctl_name = NET_IPV4_VS_TO_TW, | ||
1508 | .procname = "timeout_timewait", | 1500 | .procname = "timeout_timewait", |
1509 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_TIME_WAIT], | 1501 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_TIME_WAIT], |
1510 | .maxlen = sizeof(int), | 1502 | .maxlen = sizeof(int), |
@@ -1512,7 +1504,6 @@ static struct ctl_table vs_vars[] = { | |||
1512 | .proc_handler = &proc_dointvec_jiffies, | 1504 | .proc_handler = &proc_dointvec_jiffies, |
1513 | }, | 1505 | }, |
1514 | { | 1506 | { |
1515 | .ctl_name = NET_IPV4_VS_TO_CL, | ||
1516 | .procname = "timeout_close", | 1507 | .procname = "timeout_close", |
1517 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_CLOSE], | 1508 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_CLOSE], |
1518 | .maxlen = sizeof(int), | 1509 | .maxlen = sizeof(int), |
@@ -1520,7 +1511,6 @@ static struct ctl_table vs_vars[] = { | |||
1520 | .proc_handler = &proc_dointvec_jiffies, | 1511 | .proc_handler = &proc_dointvec_jiffies, |
1521 | }, | 1512 | }, |
1522 | { | 1513 | { |
1523 | .ctl_name = NET_IPV4_VS_TO_CW, | ||
1524 | .procname = "timeout_closewait", | 1514 | .procname = "timeout_closewait", |
1525 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_CLOSE_WAIT], | 1515 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_CLOSE_WAIT], |
1526 | .maxlen = sizeof(int), | 1516 | .maxlen = sizeof(int), |
@@ -1528,7 +1518,6 @@ static struct ctl_table vs_vars[] = { | |||
1528 | .proc_handler = &proc_dointvec_jiffies, | 1518 | .proc_handler = &proc_dointvec_jiffies, |
1529 | }, | 1519 | }, |
1530 | { | 1520 | { |
1531 | .ctl_name = NET_IPV4_VS_TO_LA, | ||
1532 | .procname = "timeout_lastack", | 1521 | .procname = "timeout_lastack", |
1533 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_LAST_ACK], | 1522 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_LAST_ACK], |
1534 | .maxlen = sizeof(int), | 1523 | .maxlen = sizeof(int), |
@@ -1536,7 +1525,6 @@ static struct ctl_table vs_vars[] = { | |||
1536 | .proc_handler = &proc_dointvec_jiffies, | 1525 | .proc_handler = &proc_dointvec_jiffies, |
1537 | }, | 1526 | }, |
1538 | { | 1527 | { |
1539 | .ctl_name = NET_IPV4_VS_TO_LI, | ||
1540 | .procname = "timeout_listen", | 1528 | .procname = "timeout_listen", |
1541 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_LISTEN], | 1529 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_LISTEN], |
1542 | .maxlen = sizeof(int), | 1530 | .maxlen = sizeof(int), |
@@ -1544,7 +1532,6 @@ static struct ctl_table vs_vars[] = { | |||
1544 | .proc_handler = &proc_dointvec_jiffies, | 1532 | .proc_handler = &proc_dointvec_jiffies, |
1545 | }, | 1533 | }, |
1546 | { | 1534 | { |
1547 | .ctl_name = NET_IPV4_VS_TO_SA, | ||
1548 | .procname = "timeout_synack", | 1535 | .procname = "timeout_synack", |
1549 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_SYNACK], | 1536 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_SYNACK], |
1550 | .maxlen = sizeof(int), | 1537 | .maxlen = sizeof(int), |
@@ -1552,7 +1539,6 @@ static struct ctl_table vs_vars[] = { | |||
1552 | .proc_handler = &proc_dointvec_jiffies, | 1539 | .proc_handler = &proc_dointvec_jiffies, |
1553 | }, | 1540 | }, |
1554 | { | 1541 | { |
1555 | .ctl_name = NET_IPV4_VS_TO_UDP, | ||
1556 | .procname = "timeout_udp", | 1542 | .procname = "timeout_udp", |
1557 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_UDP], | 1543 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_UDP], |
1558 | .maxlen = sizeof(int), | 1544 | .maxlen = sizeof(int), |
@@ -1560,7 +1546,6 @@ static struct ctl_table vs_vars[] = { | |||
1560 | .proc_handler = &proc_dointvec_jiffies, | 1546 | .proc_handler = &proc_dointvec_jiffies, |
1561 | }, | 1547 | }, |
1562 | { | 1548 | { |
1563 | .ctl_name = NET_IPV4_VS_TO_ICMP, | ||
1564 | .procname = "timeout_icmp", | 1549 | .procname = "timeout_icmp", |
1565 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_ICMP], | 1550 | .data = &vs_timeout_table_dos.timeout[IP_VS_S_ICMP], |
1566 | .maxlen = sizeof(int), | 1551 | .maxlen = sizeof(int), |
@@ -1569,7 +1554,6 @@ static struct ctl_table vs_vars[] = { | |||
1569 | }, | 1554 | }, |
1570 | #endif | 1555 | #endif |
1571 | { | 1556 | { |
1572 | .ctl_name = NET_IPV4_VS_CACHE_BYPASS, | ||
1573 | .procname = "cache_bypass", | 1557 | .procname = "cache_bypass", |
1574 | .data = &sysctl_ip_vs_cache_bypass, | 1558 | .data = &sysctl_ip_vs_cache_bypass, |
1575 | .maxlen = sizeof(int), | 1559 | .maxlen = sizeof(int), |
@@ -1577,7 +1561,6 @@ static struct ctl_table vs_vars[] = { | |||
1577 | .proc_handler = &proc_dointvec, | 1561 | .proc_handler = &proc_dointvec, |
1578 | }, | 1562 | }, |
1579 | { | 1563 | { |
1580 | .ctl_name = NET_IPV4_VS_EXPIRE_NODEST_CONN, | ||
1581 | .procname = "expire_nodest_conn", | 1564 | .procname = "expire_nodest_conn", |
1582 | .data = &sysctl_ip_vs_expire_nodest_conn, | 1565 | .data = &sysctl_ip_vs_expire_nodest_conn, |
1583 | .maxlen = sizeof(int), | 1566 | .maxlen = sizeof(int), |
@@ -1585,7 +1568,6 @@ static struct ctl_table vs_vars[] = { | |||
1585 | .proc_handler = &proc_dointvec, | 1568 | .proc_handler = &proc_dointvec, |
1586 | }, | 1569 | }, |
1587 | { | 1570 | { |
1588 | .ctl_name = NET_IPV4_VS_EXPIRE_QUIESCENT_TEMPLATE, | ||
1589 | .procname = "expire_quiescent_template", | 1571 | .procname = "expire_quiescent_template", |
1590 | .data = &sysctl_ip_vs_expire_quiescent_template, | 1572 | .data = &sysctl_ip_vs_expire_quiescent_template, |
1591 | .maxlen = sizeof(int), | 1573 | .maxlen = sizeof(int), |
@@ -1600,7 +1582,6 @@ static struct ctl_table vs_vars[] = { | |||
1600 | .proc_handler = &proc_do_sync_threshold, | 1582 | .proc_handler = &proc_do_sync_threshold, |
1601 | }, | 1583 | }, |
1602 | { | 1584 | { |
1603 | .ctl_name = NET_IPV4_VS_NAT_ICMP_SEND, | ||
1604 | .procname = "nat_icmp_send", | 1585 | .procname = "nat_icmp_send", |
1605 | .data = &sysctl_ip_vs_nat_icmp_send, | 1586 | .data = &sysctl_ip_vs_nat_icmp_send, |
1606 | .maxlen = sizeof(int), | 1587 | .maxlen = sizeof(int), |
@@ -1612,7 +1593,6 @@ static struct ctl_table vs_vars[] = { | |||
1612 | 1593 | ||
1613 | static ctl_table vs_table[] = { | 1594 | static ctl_table vs_table[] = { |
1614 | { | 1595 | { |
1615 | .ctl_name = NET_IPV4_VS, | ||
1616 | .procname = "vs", | 1596 | .procname = "vs", |
1617 | .mode = 0555, | 1597 | .mode = 0555, |
1618 | .child = vs_vars | 1598 | .child = vs_vars |
diff --git a/net/ipv4/ipvs/ip_vs_lblc.c b/net/ipv4/ipvs/ip_vs_lblc.c index 7159f9c18f72..b843a11d7cf7 100644 --- a/net/ipv4/ipvs/ip_vs_lblc.c +++ b/net/ipv4/ipvs/ip_vs_lblc.c | |||
@@ -125,7 +125,6 @@ static ctl_table vs_vars_table[] = { | |||
125 | 125 | ||
126 | static ctl_table vs_table[] = { | 126 | static ctl_table vs_table[] = { |
127 | { | 127 | { |
128 | .ctl_name = NET_IPV4_VS, | ||
129 | .procname = "vs", | 128 | .procname = "vs", |
130 | .mode = 0555, | 129 | .mode = 0555, |
131 | .child = vs_vars_table | 130 | .child = vs_vars_table |
diff --git a/net/ipv4/ipvs/ip_vs_lblcr.c b/net/ipv4/ipvs/ip_vs_lblcr.c index 96d9b818d99d..e5b323a6b2f7 100644 --- a/net/ipv4/ipvs/ip_vs_lblcr.c +++ b/net/ipv4/ipvs/ip_vs_lblcr.c | |||
@@ -313,7 +313,6 @@ static ctl_table vs_vars_table[] = { | |||
313 | 313 | ||
314 | static ctl_table vs_table[] = { | 314 | static ctl_table vs_table[] = { |
315 | { | 315 | { |
316 | .ctl_name = NET_IPV4_VS, | ||
317 | .procname = "vs", | 316 | .procname = "vs", |
318 | .mode = 0555, | 317 | .mode = 0555, |
319 | .child = vs_vars_table | 318 | .child = vs_vars_table |