Enable net.isr.enable by default, causing "delivery to completion"

(direct dispatch) in interrupt threads when the netisr in question
isn't already active.  If a netisr is already active, or direct
dispatch is already in progress, we queue the packet for later
delivery.  Previously, this option was disabled by default.  I have
measured 20%+ performance improvements in IP packet forwarding with
this enabled.

Please report any problems ASAP, especially relating to stack depth or
out-of-order packet processing.

Discussed with:	jlemon, peter
Sponsored by:	DARPA, Network Associates Laboratories
This commit is contained in:
Robert Watson 2003-10-01 21:31:09 +00:00
parent b79274ba41
commit 19288f738a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120650

View file

@ -108,7 +108,7 @@ static struct isrstat isrstat;
SYSCTL_NODE(_net, OID_AUTO, isr, CTLFLAG_RW, 0, "netisr counters");
static int netisr_enable = 0;
static int netisr_enable = 1;
SYSCTL_INT(_net_isr, OID_AUTO, enable, CTLFLAG_RW,
&netisr_enable, 0, "enable direct dispatch");