original comment: +Wilson03172004,marked due to this pci host does not support MWI
[linux-2.4.git] / net / core / sysctl_net_core.c
1 /* -*- linux-c -*-
2  * sysctl_net_core.c: sysctl interface to net core subsystem.
3  *
4  * Begun April 1, 1996, Mike Shaver.
5  * Added /proc/sys/net/core directory entry (empty =) ). [MS]
6  */
7
8 #include <linux/mm.h>
9 #include <linux/sysctl.h>
10 #include <linux/config.h>
11
12 #ifdef CONFIG_SYSCTL
13
14 extern int netdev_max_backlog;
15 extern int weight_p;
16 extern int no_cong_thresh;
17 extern int no_cong;
18 extern int lo_cong;
19 extern int mod_cong;
20 extern int netdev_fastroute;
21 extern int net_msg_cost;
22 extern int net_msg_burst;
23
24 extern __u32 sysctl_wmem_max;
25 extern __u32 sysctl_rmem_max;
26 extern __u32 sysctl_wmem_default;
27 extern __u32 sysctl_rmem_default;
28
29 extern int sysctl_core_destroy_delay;
30 extern int sysctl_optmem_max;
31 extern int sysctl_somaxconn;
32 extern int sysctl_hot_list_len;
33
34 #ifdef CONFIG_NET_DIVERT
35 extern char sysctl_divert_version[];
36 #endif /* CONFIG_NET_DIVERT */
37
38 ctl_table core_table[] = {
39 #ifdef CONFIG_NET
40         {NET_CORE_WMEM_MAX, "wmem_max",
41          &sysctl_wmem_max, sizeof(int), 0644, NULL,
42          &proc_dointvec},
43         {NET_CORE_RMEM_MAX, "rmem_max",
44          &sysctl_rmem_max, sizeof(int), 0644, NULL,
45          &proc_dointvec},
46         {NET_CORE_WMEM_DEFAULT, "wmem_default",
47          &sysctl_wmem_default, sizeof(int), 0644, NULL,
48          &proc_dointvec},
49         {NET_CORE_RMEM_DEFAULT, "rmem_default",
50          &sysctl_rmem_default, sizeof(int), 0644, NULL,
51          &proc_dointvec},
52         {NET_CORE_DEV_WEIGHT, "dev_weight",
53          &weight_p, sizeof(int), 0644, NULL,
54          &proc_dointvec},
55         {NET_CORE_MAX_BACKLOG, "netdev_max_backlog",
56          &netdev_max_backlog, sizeof(int), 0644, NULL,
57          &proc_dointvec},
58         {NET_CORE_NO_CONG_THRESH, "no_cong_thresh",
59          &no_cong_thresh, sizeof(int), 0644, NULL,
60          &proc_dointvec},
61         {NET_CORE_NO_CONG, "no_cong",
62          &no_cong, sizeof(int), 0644, NULL,
63          &proc_dointvec},
64         {NET_CORE_LO_CONG, "lo_cong",
65          &lo_cong, sizeof(int), 0644, NULL,
66          &proc_dointvec},
67         {NET_CORE_MOD_CONG, "mod_cong",
68          &mod_cong, sizeof(int), 0644, NULL,
69          &proc_dointvec},
70 #ifdef CONFIG_NET_FASTROUTE
71         {NET_CORE_FASTROUTE, "netdev_fastroute",
72          &netdev_fastroute, sizeof(int), 0644, NULL,
73          &proc_dointvec},
74 #endif
75         {NET_CORE_MSG_COST, "message_cost",
76          &net_msg_cost, sizeof(int), 0644, NULL,
77          &proc_dointvec_jiffies},
78         {NET_CORE_MSG_BURST, "message_burst",
79          &net_msg_burst, sizeof(int), 0644, NULL,
80          &proc_dointvec_jiffies},
81         {NET_CORE_OPTMEM_MAX, "optmem_max",
82          &sysctl_optmem_max, sizeof(int), 0644, NULL,
83          &proc_dointvec},
84         {NET_CORE_HOT_LIST_LENGTH, "hot_list_length",
85          &sysctl_hot_list_len, sizeof(int), 0644, NULL,
86          &proc_dointvec},
87 #ifdef CONFIG_NET_DIVERT
88         {NET_CORE_DIVERT_VERSION, "divert_version",
89          (void *)sysctl_divert_version, 32, 0444, NULL,
90          &proc_dostring},
91 #endif /* CONFIG_NET_DIVERT */
92         {NET_CORE_SOMAXCONN, "somaxconn",
93          &sysctl_somaxconn, sizeof(int), 0644, NULL,
94          &proc_dointvec },
95 #endif /* CONFIG_NET */
96         { 0 }
97 };
98 #endif