summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_stge.c5
-rw-r--r--sys/dev/pci/if_stgereg.h9
2 files changed, 9 insertions, 5 deletions
diff --git a/sys/dev/pci/if_stge.c b/sys/dev/pci/if_stge.c
index c701115c8ee..49d3aca3315 100644
--- a/sys/dev/pci/if_stge.c
+++ b/sys/dev/pci/if_stge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_stge.c,v 1.26 2006/06/11 05:21:54 brad Exp $ */
+/* $OpenBSD: if_stge.c,v 1.27 2006/07/12 02:02:19 brad Exp $ */
/* $NetBSD: if_stge.c,v 1.27 2005/05/16 21:35:32 bouyer Exp $ */
/*-
@@ -551,6 +551,9 @@ stge_attach(struct device *parent, struct device *self, void *aux)
ifp->if_ioctl = stge_ioctl;
ifp->if_start = stge_start;
ifp->if_watchdog = stge_watchdog;
+#ifdef STGE_JUMBO
+ ifp->if_hardmtu = STGE_JUMBO_MTU;
+#endif
IFQ_SET_MAXLEN(&ifp->if_snd, STGE_NTXDESC - 1);
IFQ_SET_READY(&ifp->if_snd);
diff --git a/sys/dev/pci/if_stgereg.h b/sys/dev/pci/if_stgereg.h
index c3dff10c089..96c022c4fb1 100644
--- a/sys/dev/pci/if_stgereg.h
+++ b/sys/dev/pci/if_stgereg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_stgereg.h,v 1.5 2006/05/28 00:20:21 brad Exp $ */
+/* $OpenBSD: if_stgereg.h,v 1.6 2006/07/12 02:02:19 brad Exp $ */
/* $NetBSD: if_stgereg.h,v 1.3 2003/02/10 21:10:07 christos Exp $ */
/*-
@@ -40,8 +40,9 @@
#ifndef _DEV_PCI_IF_STGEREG_H_
#define _DEV_PCI_IF_STGEREG_H_
-#define STGE_JUMBO_FRAMELEN 9018
-#define STGE_JUMBO_MTU (STGE_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN)
+#define STGE_JUMBO_FRAMELEN 10240
+#define STGE_JUMBO_MTU (STGE_JUMBO_FRAMELEN - ETHER_HDR_LEN - \
+ ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN)
/*
* Register description for the Sundance Tech. TC9021 10/100/1000
@@ -330,7 +331,7 @@ struct stge_rfd {
#define STGE_VLANId 0x80
-#define STGE_MaxFrameSize 0x84
+#define STGE_MaxFrameSize 0x86
#define STGE_ReceiveMode 0x88 /* 16-bit */
#define RM_ReceiveUnicast (1U << 0)