From 6f31088630db23ce65a8dec32cbed8c113e79951 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 18 Aug 2006 06:02:46 +0000 Subject: check hw.max_frame_size when deciding when to use m_adj(). --- sys/dev/pci/if_ixgb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/if_ixgb.c b/sys/dev/pci/if_ixgb.c index b6666e97e75..914354633ad 100644 --- a/sys/dev/pci/if_ixgb.c +++ b/sys/dev/pci/if_ixgb.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_ixgb.c,v 1.28 2006/08/14 02:22:13 brad Exp $ */ +/* $OpenBSD: if_ixgb.c,v 1.29 2006/08/18 06:02:45 brad Exp $ */ #include @@ -1438,9 +1438,9 @@ ixgb_get_buf(int i, struct ixgb_softc *sc, mp->m_next = NULL; } - if (ifp->if_mtu <= ETHERMTU) { + if (sc->hw.max_frame_size <= (MCLBYTES - ETHER_ALIGN)) m_adj(mp, ETHER_ALIGN); - } + rx_buffer = &sc->rx_buffer_area[i]; /* -- cgit v1.2.3