summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_em.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-04-26 07:27:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-04-26 07:27:53 +0000
commitcd8147213a6ac10c8913b5f0ca0cd2be792603f3 (patch)
tree8225bf13614c13b62f96a56e2c4186b0badfd93b /sys/dev/pci/if_em.h
parent50d7ddf906efcdad549794f593a82c1c795a2100 (diff)
this driver had 256 clusters for receive buffers. move to 512, to increase
performance, if the interface is up. at boot time, allocate only 12 though ... though we note that em_stop() frees them all. perhaps some are used to talk to other parts of the engine though at runtime... tested by mcbride and beck
Diffstat (limited to 'sys/dev/pci/if_em.h')
-rw-r--r--sys/dev/pci/if_em.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pci/if_em.h b/sys/dev/pci/if_em.h
index 25dfb5cf50c..74def91ca6a 100644
--- a/sys/dev/pci/if_em.h
+++ b/sys/dev/pci/if_em.h
@@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
/*$FreeBSD: if_em.h,v 1.24 2003/11/14 18:02:24 pdeuskar Exp $*/
-/* $OpenBSD: if_em.h,v 1.3 2004/04/18 04:15:00 henric Exp $ */
+/* $OpenBSD: if_em.h,v 1.4 2004/04/26 07:27:52 deraadt Exp $ */
#ifndef _EM_H_DEFINED_
#define _EM_H_DEFINED_
@@ -50,7 +50,8 @@ POSSIBILITY OF SUCH DAMAGE.
* Increasing this value allows the driver to queue more transmits. Each
* descriptor is 16 bytes.
*/
-#define EM_MAX_TXD 256
+#define EM_MIN_TXD 12
+#define EM_MAX_TXD 512
/*
* EM_MAX_RXD - Maximum number of receive Descriptors
@@ -63,7 +64,8 @@ POSSIBILITY OF SUCH DAMAGE.
* descriptor. The maximum MTU size is 16110.
*
*/
-#define EM_MAX_RXD 256
+#define EM_MIN_RXD 12
+#define EM_MAX_RXD 512
/*
* EM_TIDV - Transmit Interrupt Delay Value