From cea2165b106800c3804173467397985b410428c4 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Tue, 4 Oct 2005 07:59:28 +0000 Subject: [PATCH] Rename net.isr.enable to net.isr.dispatch. No compatibility code is provided, as this will be the production name as of 6.0. MFC after: 3 days Requested by: scottl --- sys/net/netisr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/net/netisr.c b/sys/net/netisr.c index c506e315ce0b..3ef16b892247 100644 --- a/sys/net/netisr.c +++ b/sys/net/netisr.c @@ -200,10 +200,10 @@ static struct isrstat isrstat; SYSCTL_NODE(_net, OID_AUTO, isr, CTLFLAG_RW, 0, "netisr counters"); -static int netisr_enable = 0; -SYSCTL_INT(_net_isr, OID_AUTO, enable, CTLFLAG_RW, - &netisr_enable, 0, "enable direct dispatch"); -TUNABLE_INT("net.isr.enable", &netisr_enable); +static int netisr_direct = 0; +SYSCTL_INT(_net_isr, OID_AUTO, direct, CTLFLAG_RW, + &netisr_direct, 0, "enable direct dispatch"); +TUNABLE_INT("net.isr.direct", &netisr_direct); SYSCTL_INT(_net_isr, OID_AUTO, count, CTLFLAG_RD, &isrstat.isrs_count, 0, ""); @@ -265,7 +265,7 @@ netisr_dispatch(int num, struct mbuf *m) * between multiple places in the system (e.g. IP * dispatched from interfaces vs. IP queued from IPSec). */ - if (netisr_enable && (ni->ni_flags & NETISR_MPSAFE)) { + if (netisr_direct && (ni->ni_flags & NETISR_MPSAFE)) { isrstat.isrs_directed++; /* * NB: We used to drain the queue before handling