From f6c142724016a48be2bd25c037dfc38689ef8f7b Mon Sep 17 00:00:00 2001 From: silby Date: Mon, 11 Feb 2002 23:38:30 +0000 Subject: [PATCH] Remove mbuf exhaustion warning messages; these are handled by the mbuf system in a rate-limited fashion now. MFC after: 3 days --- sys/dev/ti/if_ti.c | 4 ---- sys/dev/tx/if_tx.c | 2 -- sys/pci/if_rl.c | 4 ---- sys/pci/if_ti.c | 4 ---- sys/pci/if_tx.c | 2 -- 5 files changed, 16 deletions(-) diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 106f065f9c9a..0951e389a2c2 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -744,8 +744,6 @@ static int ti_newbuf_mini(sc, i, m) if (m == NULL) { MGETHDR(m_new, M_DONTWAIT, MT_DATA); if (m_new == NULL) { - printf("ti%d: mbuf allocation failed " - "-- packet dropped!\n", sc->ti_unit); return(ENOBUFS); } m_new->m_len = m_new->m_pkthdr.len = MHLEN; @@ -787,8 +785,6 @@ static int ti_newbuf_jumbo(sc, i, m) /* Allocate the mbuf. */ MGETHDR(m_new, M_DONTWAIT, MT_DATA); if (m_new == NULL) { - printf("ti%d: mbuf allocation failed " - "-- packet dropped!\n", sc->ti_unit); return(ENOBUFS); } diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c index 0fb905162d76..26b6bdb65099 100644 --- a/sys/dev/tx/if_tx.c +++ b/sys/dev/tx/if_tx.c @@ -862,7 +862,6 @@ epic_ifstart(ifp) if( NULL != m ){ EPIC_MGETCLUSTER(m); if( NULL == m ){ - printf(EPIC_FORMAT ": cannot allocate mbuf cluster\n",EPIC_ARGS(sc)); m_freem(m0); ifp->if_oerrors++; continue; @@ -940,7 +939,6 @@ epic_rx_done(sc) /* Try to get mbuf cluster */ EPIC_MGETCLUSTER( buf->mbuf ); if( NULL == buf->mbuf ) { - printf(EPIC_FORMAT ": cannot allocate mbuf cluster\n",EPIC_ARGS(sc)); buf->mbuf = m; desc->status = 0x8000; sc->sc_if.if_ierrors++; diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c index 980404f0ba3c..be47166ee4a3 100644 --- a/sys/pci/if_rl.c +++ b/sys/pci/if_rl.c @@ -1225,8 +1225,6 @@ static void rl_rxeof(sc) NULL); if (m == NULL) { ifp->if_ierrors++; - printf("rl%d: out of mbufs, tried to " - "copy %d bytes\n", sc->rl_unit, wrap); } else { m_copyback(m, wrap, total_len - wrap, sc->rl_cdata.rl_rx_buf); @@ -1237,8 +1235,6 @@ static void rl_rxeof(sc) NULL); if (m == NULL) { ifp->if_ierrors++; - printf("rl%d: out of mbufs, tried to " - "copy %d bytes\n", sc->rl_unit, total_len); } cur_rx += total_len + 4 + ETHER_CRC_LEN; } diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c index 106f065f9c9a..0951e389a2c2 100644 --- a/sys/pci/if_ti.c +++ b/sys/pci/if_ti.c @@ -744,8 +744,6 @@ static int ti_newbuf_mini(sc, i, m) if (m == NULL) { MGETHDR(m_new, M_DONTWAIT, MT_DATA); if (m_new == NULL) { - printf("ti%d: mbuf allocation failed " - "-- packet dropped!\n", sc->ti_unit); return(ENOBUFS); } m_new->m_len = m_new->m_pkthdr.len = MHLEN; @@ -787,8 +785,6 @@ static int ti_newbuf_jumbo(sc, i, m) /* Allocate the mbuf. */ MGETHDR(m_new, M_DONTWAIT, MT_DATA); if (m_new == NULL) { - printf("ti%d: mbuf allocation failed " - "-- packet dropped!\n", sc->ti_unit); return(ENOBUFS); } diff --git a/sys/pci/if_tx.c b/sys/pci/if_tx.c index 0fb905162d76..26b6bdb65099 100644 --- a/sys/pci/if_tx.c +++ b/sys/pci/if_tx.c @@ -862,7 +862,6 @@ epic_ifstart(ifp) if( NULL != m ){ EPIC_MGETCLUSTER(m); if( NULL == m ){ - printf(EPIC_FORMAT ": cannot allocate mbuf cluster\n",EPIC_ARGS(sc)); m_freem(m0); ifp->if_oerrors++; continue; @@ -940,7 +939,6 @@ epic_rx_done(sc) /* Try to get mbuf cluster */ EPIC_MGETCLUSTER( buf->mbuf ); if( NULL == buf->mbuf ) { - printf(EPIC_FORMAT ": cannot allocate mbuf cluster\n",EPIC_ARGS(sc)); buf->mbuf = m; desc->status = 0x8000; sc->sc_if.if_ierrors++;