From 7fad68d47f4ac998e91c7e58349abeec9702f6b5 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Fri, 9 Apr 2004 21:52:18 +0000 Subject: do not whine if we cannot get mbufs. the countless printfd makes the machine crawl under mbuf starvation, making the situationmuch worse, and don't make sense in the first place. ok tdeval@ millert@ beck@ deraadt@ --- sys/dev/pci/if_lge.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'sys/dev/pci/if_lge.c') diff --git a/sys/dev/pci/if_lge.c b/sys/dev/pci/if_lge.c index 3f872bb31c9..2a745455bc4 100644 --- a/sys/dev/pci/if_lge.c +++ b/sys/dev/pci/if_lge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lge.c,v 1.13 2003/10/06 06:43:12 david Exp $ */ +/* $OpenBSD: if_lge.c,v 1.14 2004/04/09 21:52:17 henning Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -764,18 +764,12 @@ int lge_newbuf(sc, c, m) if (m == NULL) { MGETHDR(m_new, M_DONTWAIT, MT_DATA); if (m_new == NULL) { - printf("%s: no memory for rx list " - "-- packet dropped!\n", sc->sc_dv.dv_xname); return(ENOBUFS); } /* Allocate the jumbo buffer */ buf = lge_jalloc(sc); if (buf == NULL) { -#ifdef LGE_VERBOSE - printf("%s: jumbo allocation failed " - "-- packet dropped!\n", sc->sc_dv.dv_xname); -#endif m_freem(m_new); return(ENOBUFS); } @@ -1002,9 +996,6 @@ void lge_rxeof(sc, cnt) ifp, NULL); lge_newbuf(sc, &LGE_RXTAIL(sc), m); if (m0 == NULL) { - printf("%s: no receive buffers " - "available -- packet dropped!\n", - sc->sc_dv.dv_xname); ifp->if_ierrors++; continue; } -- cgit v1.2.3