diff options
| author | 2004-04-09 21:52:16 +0000 | |
|---|---|---|
| committer | 2004-04-09 21:52:16 +0000 | |
| commit | 5ecf24ba1e2a41ecbf4dc7c44f80a285f9d66d7b (patch) | |
| tree | 84b7f4193395d2849e097d7d71709b5d6c47e0da /sys/dev/pci/if_ste.c | |
| parent | s:removeable:removable: (diff) | |
| download | wireguard-openbsd-5ecf24ba1e2a41ecbf4dc7c44f80a285f9d66d7b.tar.xz wireguard-openbsd-5ecf24ba1e2a41ecbf4dc7c44f80a285f9d66d7b.zip | |
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_ste.c')
| -rw-r--r-- | sys/dev/pci/if_ste.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/pci/if_ste.c b/sys/dev/pci/if_ste.c index 6b234452cc3..4c10b2cdada 100644 --- a/sys/dev/pci/if_ste.c +++ b/sys/dev/pci/if_ste.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ste.c,v 1.20 2003/06/29 17:20:03 avsm Exp $ */ +/* $OpenBSD: if_ste.c,v 1.21 2004/04/09 21:52:17 henning Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -1017,15 +1017,10 @@ int ste_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_dev.dv_xname); + if (m_new == NULL) return(ENOBUFS); - } MCLGET(m_new, M_DONTWAIT); if (!(m_new->m_flags & M_EXT)) { - printf("%s: no memory for rx list -- " - "packet dropped\n", sc->sc_dev.dv_xname); m_freem(m_new); return(ENOBUFS); } |
