diff options
author | mjacob <mjacob@FreeBSD.org> | 2001-10-02 22:36:49 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2001-10-02 22:36:49 +0000 |
commit | a8a01b12b0e0dcc5f94a5a12d5099649e35dd3c9 (patch) | |
tree | c660a2a453d64ca33213bf8a2556bf39f8fde1d5 | |
parent | e96a60dd2786961389241d23ed0a7339ad562315 (diff) | |
download | FreeBSD-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.c | 7 |
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 |