summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nfereg.h
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-02-12 10:28:08 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-02-12 10:28:08 +0000
commitd01449c60435161fafb6b96813654ab789f06c15 (patch)
tree7127b84787a7db5c8ed3abff0e1d9a61e122ad18 /sys/dev/pci/if_nfereg.h
parent979dad32a2525a635e2cab45c8323a25ce0d0ced (diff)
initial jumbo frames support (disabled for now).
#define'ing NFE_NO_JUMBO can save a few hundred KB of wired memory.
Diffstat (limited to 'sys/dev/pci/if_nfereg.h')
-rw-r--r--sys/dev/pci/if_nfereg.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_nfereg.h b/sys/dev/pci/if_nfereg.h
index 76c667e1557..db984c9c643 100644
--- a/sys/dev/pci/if_nfereg.h
+++ b/sys/dev/pci/if_nfereg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nfereg.h,v 1.9 2006/02/11 11:51:30 damien Exp $ */
+/* $OpenBSD: if_nfereg.h,v 1.10 2006/02/12 10:28:07 damien Exp $ */
/*-
* Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org>
@@ -21,6 +21,10 @@
#define NFE_RX_RING_COUNT 128
#define NFE_TX_RING_COUNT 64
+#define NFE_JBYTES (ETHER_MAX_LEN_JUMBO + ETHER_ALIGN)
+#define NFE_JPOOL_COUNT (NFE_RX_RING_COUNT + 64)
+#define NFE_JPOOL_SIZE (NFE_JPOOL_COUNT * NFE_JBYTES)
+
#define NFE_MAX_SCATTER NFE_TX_RING_COUNT
#define NFE_IRQ_STATUS 0x000