summaryrefslogtreecommitdiffstats
path: root/net/core/sysctl_net_core.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2005-06-23 20:14:40 -0700
committerDavid S. Miller <davem@davemloft.net>2005-06-23 20:14:40 -0700
commit51b0bdedb8e784d0d969a6b77151911130812400 (patch)
tree2acfa2b696773e96c08641d73aadf6b83d93b10f /net/core/sysctl_net_core.c
parent31aa02c53c84658f6694f319f09e232ede27be5a (diff)
downloadlinux-stable-51b0bdedb8e784d0d969a6b77151911130812400.tar.gz
linux-stable-51b0bdedb8e784d0d969a6b77151911130812400.tar.bz2
linux-stable-51b0bdedb8e784d0d969a6b77151911130812400.zip
[NET]: Separate two usages of netdev_max_backlog.
Separate out the two uses of netdev_max_backlog. One controls the upper bound on packets processed per softirq, the new name for this is netdev_budget; the other controls the limit on packets queued via netif_rx. Increase the max_backlog default to account for faster processors. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sysctl_net_core.c')
-rw-r--r--net/core/sysctl_net_core.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c
index fff63643a35c..8f817ad9f546 100644
--- a/net/core/sysctl_net_core.c
+++ b/net/core/sysctl_net_core.c
@@ -13,6 +13,7 @@
#ifdef CONFIG_SYSCTL
extern int netdev_max_backlog;
+extern int netdev_budget;
extern int weight_p;
extern int net_msg_cost;
extern int net_msg_burst;
@@ -124,6 +125,14 @@ ctl_table core_table[] = {
.mode = 0644,
.proc_handler = &proc_dointvec
},
+ {
+ .ctl_name = NET_CORE_BUDGET,
+ .procname = "netdev_budget",
+ .data = &netdev_budget,
+ .maxlen = sizeof(int),
+ .mode = 0644,
+ .proc_handler = &proc_dointvec
+ },
{ .ctl_name = 0 }
};