summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-08-18 06:02:46 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-08-18 06:02:46 +0000
commit6f31088630db23ce65a8dec32cbed8c113e79951 (patch)
tree035a80cc3019f6c9b010cdac1c92db6fdb7da68e /sys/dev
parent37180e5958690e64a1946847a5d99584981fcced (diff)
check hw.max_frame_size when deciding when to use m_adj().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_ixgb.c6
1 files changed, 3 insertions, 3 deletions
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 <dev/pci/if_ixgb.h>
@@ -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];
/*