summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_lge.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-09 21:52:18 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-09 21:52:18 +0000
commit7fad68d47f4ac998e91c7e58349abeec9702f6b5 (patch)
tree268da1ecebb6894e153c9913f891c6e3734600e3 /sys/dev/pci/if_lge.c
parent3c4ed6b6eb0a41b134afaea1ed7bb00f7bb08eed (diff)
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@
Diffstat (limited to 'sys/dev/pci/if_lge.c')
-rw-r--r--sys/dev/pci/if_lge.c11
1 files changed, 1 insertions, 10 deletions
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;
}