summaryrefslogtreecommitdiff
path: root/sys/net/netisr_dispatch.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2008-04-10 23:15:46 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2008-04-10 23:15:46 +0000
commitca31726a0b98ca5ca3caaf50a8f5ca284988eb81 (patch)
tree48f39439a52434c61ba8601f48b4342f835a7b75 /sys/net/netisr_dispatch.h
parent809a2c5adf7ac3bbd6d750fd38725a635cd2a0c4 (diff)
introduce mitigation for the calling of an interfaces start routine.
decent drivers prefer to have a lot of packets on the send queue so they can queue a lot of them up on the tx ring and then post them all in one big chunk. unfortunately our stack queues one packet onto the send queue and then calls the start handler immediately. this mitigates against that queue, send, queue, send behaviour by trying to call the start routine only once per softnet. now its queue, queue, queue, send. this is the result of a lot of discussion with claudio@ tested by many.
Diffstat (limited to 'sys/net/netisr_dispatch.h')
-rw-r--r--sys/net/netisr_dispatch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/netisr_dispatch.h b/sys/net/netisr_dispatch.h
index 3269806eaac..2f786985dac 100644
--- a/sys/net/netisr_dispatch.h
+++ b/sys/net/netisr_dispatch.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: netisr_dispatch.h,v 1.13 2007/06/06 10:04:36 henning Exp $ */
+/* $OpenBSD: netisr_dispatch.h,v 1.14 2008/04/10 23:15:45 dlg Exp $ */
/* $NetBSD: netisr_dispatch.h,v 1.2 2000/07/02 04:40:47 cgd Exp $ */
/*
@@ -63,3 +63,4 @@
#if NBLUETOOTH > 0
DONETISR(NETISR_BT,btintr);
#endif
+ DONETISR(NETISR_TX,nettxintr);