From 18cdab57cb628eb10d3565fbca42a4b0e9b60cf0 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 19 Sep 2007 07:11:19 +0000 Subject: In ex_rx_intr() allocate an mbuf cluster if the pkt_len is >= MINCLSIZE. From FreeBSD ok dlg@ --- sys/dev/isa/if_ex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/isa/if_ex.c b/sys/dev/isa/if_ex.c index bb03d5c27f7..5d481360360 100644 --- a/sys/dev/isa/if_ex.c +++ b/sys/dev/isa/if_ex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ex.c,v 1.24 2007/09/19 06:44:57 brad Exp $ */ +/* $OpenBSD: if_ex.c,v 1.25 2007/09/19 07:11:18 brad Exp $ */ /* * Copyright (c) 1997, Donald A. Schmidt * Copyright (c) 1996, Javier Martín Rueda (jmrueda@diatel.upm.es) @@ -671,7 +671,7 @@ ex_rx_intr(struct ex_softc *sc) ipkt->m_pkthdr.len = pkt_len; ipkt->m_len = MHLEN; while (pkt_len > 0) { - if (pkt_len > MINCLSIZE) { + if (pkt_len >= MINCLSIZE) { MCLGET(m, M_DONTWAIT); if (m->m_flags & M_EXT) m->m_len = MCLBYTES; -- cgit v1.2.3