summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-10-02 22:36:49 +0000
committermjacob <mjacob@FreeBSD.org>2001-10-02 22:36:49 +0000
commita8a01b12b0e0dcc5f94a5a12d5099649e35dd3c9 (patch)
treec660a2a453d64ca33213bf8a2556bf39f8fde1d5
parente96a60dd2786961389241d23ed0a7339ad562315 (diff)
downloadFreeBSD-src-a8a01b12b0e0dcc5f94a5a12d5099649e35dd3c9.zip
FreeBSD-src-a8a01b12b0e0dcc5f94a5a12d5099649e35dd3c9.tar.gz
Let's not kid ourselves- we don't *really* support jumbframes yet.
We only support the size of frame we are currently allocating, which is MCLBYTES - sizeof (struct ether_header) usable, so don't set an MTU that would go over this.
-rw-r--r--sys/pci/if_wx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/pci/if_wx.c b/sys/pci/if_wx.c
index e9aa808..ac83498 100644
--- a/sys/pci/if_wx.c
+++ b/sys/pci/if_wx.c
@@ -118,7 +118,14 @@ static void wx_mii_shift_out(wx_softc_t *, u_int32_t, u_int32_t);
#define WX_DISABLE_INT(sc) WRITE_CSR(sc, WXREG_IMCLR, WXDISABLE)
#define WX_ENABLE_INT(sc) WRITE_CSR(sc, WXREG_IMASK, sc->wx_ienable)
+/*
+ * Until we do a bit more work, we can get no bigger than MCLBYTES
+ */
+#if 0
#define WX_MAXMTU (WX_MAX_PKT_SIZE_JUMBO - sizeof (struct ether_header))
+#else
+#define WX_MAXMTU (MCLBYTES - sizeof (struct ether_header))
+#endif
#define DPRINTF(sc, x) if (sc->wx_debug) printf x
#define IPRINTF(sc, x) if (sc->wx_verbose) printf x
OpenPOWER on IntegriCloud