diff options
author | pjd <pjd@FreeBSD.org> | 2010-02-15 09:19:07 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-02-15 09:19:07 +0000 |
commit | 12d96a648c305fb1eb3f73bffaeab15cb5b6c516 (patch) | |
tree | 55ecae26b3e2434001493f55c75faf44c73e33d9 /sys/net/netisr.c | |
parent | 26efa77f97a984e795c2e2cef4a1b5ed1336b155 (diff) | |
download | FreeBSD-src-12d96a648c305fb1eb3f73bffaeab15cb5b6c516.zip FreeBSD-src-12d96a648c305fb1eb3f73bffaeab15cb5b6c516.tar.gz |
Mark various sysctls also as tunables.
Reviewed by: rwatson
MFC after: 1 week
Diffstat (limited to 'sys/net/netisr.c')
-rw-r--r-- | sys/net/netisr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/netisr.c b/sys/net/netisr.c index c63c627..3574718 100644 --- a/sys/net/netisr.c +++ b/sys/net/netisr.c @@ -156,13 +156,13 @@ SYSCTL_INT(_net_isr, OID_AUTO, direct, CTLFLAG_RW, */ static int netisr_maxthreads = -1; /* Max number of threads. */ TUNABLE_INT("net.isr.maxthreads", &netisr_maxthreads); -SYSCTL_INT(_net_isr, OID_AUTO, maxthreads, CTLFLAG_RD, +SYSCTL_INT(_net_isr, OID_AUTO, maxthreads, CTLFLAG_RDTUN, &netisr_maxthreads, 0, "Use at most this many CPUs for netisr processing"); static int netisr_bindthreads = 0; /* Bind threads to CPUs. */ TUNABLE_INT("net.isr.bindthreads", &netisr_bindthreads); -SYSCTL_INT(_net_isr, OID_AUTO, bindthreads, CTLFLAG_RD, +SYSCTL_INT(_net_isr, OID_AUTO, bindthreads, CTLFLAG_RDTUN, &netisr_bindthreads, 0, "Bind netisr threads to CPUs."); /* @@ -173,7 +173,7 @@ SYSCTL_INT(_net_isr, OID_AUTO, bindthreads, CTLFLAG_RD, #define NETISR_DEFAULT_MAXQLIMIT 10240 static u_int netisr_maxqlimit = NETISR_DEFAULT_MAXQLIMIT; TUNABLE_INT("net.isr.maxqlimit", &netisr_maxqlimit); -SYSCTL_INT(_net_isr, OID_AUTO, maxqlimit, CTLFLAG_RD, +SYSCTL_INT(_net_isr, OID_AUTO, maxqlimit, CTLFLAG_RDTUN, &netisr_maxqlimit, 0, "Maximum netisr per-protocol, per-CPU queue depth."); @@ -185,7 +185,7 @@ SYSCTL_INT(_net_isr, OID_AUTO, maxqlimit, CTLFLAG_RD, #define NETISR_DEFAULT_DEFAULTQLIMIT 256 static u_int netisr_defaultqlimit = NETISR_DEFAULT_DEFAULTQLIMIT; TUNABLE_INT("net.isr.defaultqlimit", &netisr_defaultqlimit); -SYSCTL_INT(_net_isr, OID_AUTO, defaultqlimit, CTLFLAG_RD, +SYSCTL_INT(_net_isr, OID_AUTO, defaultqlimit, CTLFLAG_RDTUN, &netisr_defaultqlimit, 0, "Default netisr per-protocol, per-CPU queue limit if not set by protocol"); |