summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_lgereg.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_lgereg.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_lgereg.h')
-rw-r--r--sys/dev/pci/if_lgereg.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_lgereg.h b/sys/dev/pci/if_lgereg.h
index 5a88edfcc52..a8ca1970886 100644
--- a/sys/dev/pci/if_lgereg.h
+++ b/sys/dev/pci/if_lgereg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_lgereg.h,v 1.5 2005/12/17 07:31:27 miod Exp $ */
+/* $OpenBSD: if_lgereg.h,v 1.6 2006/05/28 00:20:21 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2000, 2001
@@ -486,9 +486,11 @@ struct lge_mii_frame {
#define LGE_MII_WRITEOP 0x01
#define LGE_MII_TURNAROUND 0x02
+#define LGE_JUMBO_FRAMELEN 9018
+#define LGE_JUMBO_MTU (LGE_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN)
#define LGE_JSLOTS 384
-#define LGE_JRAWLEN (ETHER_MAX_LEN_JUMBO + ETHER_ALIGN)
+#define LGE_JRAWLEN (LGE_JUMBO_FRAMELEN + ETHER_ALIGN)
#define LGE_JLEN (LGE_JRAWLEN + (sizeof(u_int64_t) - \
(LGE_JRAWLEN % sizeof(u_int64_t))))
#define LGE_JPAGESZ PAGE_SIZE