summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_bgereg.h
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-05-28 00:20:22 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-05-28 00:20:22 +0000
commitaf88527ffe750f4fc35af70bb81fbfd68e129ace (patch)
tree0ab28a440b9de954f9aed386febe09d2908b7f38 /sys/dev/pci/if_bgereg.h
parentf32ef14b7e0390d427153634ede40cc7b15599a4 (diff)
- remove ETHER_MAX_LEN_JUMBO and ETHERMTU_JUMBO.
- use if_hardmtu for MTU ioctl handlers. ok reyk@
Diffstat (limited to 'sys/dev/pci/if_bgereg.h')
-rw-r--r--sys/dev/pci/if_bgereg.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bgereg.h b/sys/dev/pci/if_bgereg.h
index e0d0be52899..e4aa3dc4e44 100644
--- a/sys/dev/pci/if_bgereg.h
+++ b/sys/dev/pci/if_bgereg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bgereg.h,v 1.46 2006/04/21 03:22:18 brad Exp $ */
+/* $OpenBSD: if_bgereg.h,v 1.47 2006/05/28 00:20:21 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -2191,6 +2191,8 @@ struct bge_gib {
* boundary.
*/
+#define BGE_JUMBO_FRAMELEN 9018
+#define BGE_JUMBO_MTU (BGE_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN)
#define BGE_PAGE_SIZE PAGE_SIZE
#define BGE_MIN_FRAMELEN 60
@@ -2244,7 +2246,7 @@ struct bge_gib {
#define BGE_JSLOTS 384
#endif
-#define BGE_JRAWLEN (ETHER_MAX_LEN_JUMBO + ETHER_ALIGN)
+#define BGE_JRAWLEN (BGE_JUMBO_FRAMELEN + ETHER_ALIGN)
#define BGE_JLEN (BGE_JRAWLEN + (sizeof(u_int64_t) - \
(BGE_JRAWLEN % sizeof(u_int64_t))))
#define BGE_JPAGESZ PAGE_SIZE