Remove mbuf exhaustion warning messages; these are handled by the
mbuf system in a rate-limited fashion now. MFC after: 3 days
This commit is contained in:
parent
d942145dce
commit
f6c1427240
@ -744,8 +744,6 @@ static int ti_newbuf_mini(sc, i, m)
|
|||||||
if (m == NULL) {
|
if (m == NULL) {
|
||||||
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
|
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
|
||||||
if (m_new == NULL) {
|
if (m_new == NULL) {
|
||||||
printf("ti%d: mbuf allocation failed "
|
|
||||||
"-- packet dropped!\n", sc->ti_unit);
|
|
||||||
return(ENOBUFS);
|
return(ENOBUFS);
|
||||||
}
|
}
|
||||||
m_new->m_len = m_new->m_pkthdr.len = MHLEN;
|
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. */
|
/* Allocate the mbuf. */
|
||||||
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
|
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
|
||||||
if (m_new == NULL) {
|
if (m_new == NULL) {
|
||||||
printf("ti%d: mbuf allocation failed "
|
|
||||||
"-- packet dropped!\n", sc->ti_unit);
|
|
||||||
return(ENOBUFS);
|
return(ENOBUFS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -862,7 +862,6 @@ epic_ifstart(ifp)
|
|||||||
if( NULL != m ){
|
if( NULL != m ){
|
||||||
EPIC_MGETCLUSTER(m);
|
EPIC_MGETCLUSTER(m);
|
||||||
if( NULL == m ){
|
if( NULL == m ){
|
||||||
printf(EPIC_FORMAT ": cannot allocate mbuf cluster\n",EPIC_ARGS(sc));
|
|
||||||
m_freem(m0);
|
m_freem(m0);
|
||||||
ifp->if_oerrors++;
|
ifp->if_oerrors++;
|
||||||
continue;
|
continue;
|
||||||
@ -940,7 +939,6 @@ epic_rx_done(sc)
|
|||||||
/* Try to get mbuf cluster */
|
/* Try to get mbuf cluster */
|
||||||
EPIC_MGETCLUSTER( buf->mbuf );
|
EPIC_MGETCLUSTER( buf->mbuf );
|
||||||
if( NULL == buf->mbuf ) {
|
if( NULL == buf->mbuf ) {
|
||||||
printf(EPIC_FORMAT ": cannot allocate mbuf cluster\n",EPIC_ARGS(sc));
|
|
||||||
buf->mbuf = m;
|
buf->mbuf = m;
|
||||||
desc->status = 0x8000;
|
desc->status = 0x8000;
|
||||||
sc->sc_if.if_ierrors++;
|
sc->sc_if.if_ierrors++;
|
||||||
|
@ -1225,8 +1225,6 @@ static void rl_rxeof(sc)
|
|||||||
NULL);
|
NULL);
|
||||||
if (m == NULL) {
|
if (m == NULL) {
|
||||||
ifp->if_ierrors++;
|
ifp->if_ierrors++;
|
||||||
printf("rl%d: out of mbufs, tried to "
|
|
||||||
"copy %d bytes\n", sc->rl_unit, wrap);
|
|
||||||
} else {
|
} else {
|
||||||
m_copyback(m, wrap, total_len - wrap,
|
m_copyback(m, wrap, total_len - wrap,
|
||||||
sc->rl_cdata.rl_rx_buf);
|
sc->rl_cdata.rl_rx_buf);
|
||||||
@ -1237,8 +1235,6 @@ static void rl_rxeof(sc)
|
|||||||
NULL);
|
NULL);
|
||||||
if (m == NULL) {
|
if (m == NULL) {
|
||||||
ifp->if_ierrors++;
|
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;
|
cur_rx += total_len + 4 + ETHER_CRC_LEN;
|
||||||
}
|
}
|
||||||
|
@ -744,8 +744,6 @@ static int ti_newbuf_mini(sc, i, m)
|
|||||||
if (m == NULL) {
|
if (m == NULL) {
|
||||||
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
|
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
|
||||||
if (m_new == NULL) {
|
if (m_new == NULL) {
|
||||||
printf("ti%d: mbuf allocation failed "
|
|
||||||
"-- packet dropped!\n", sc->ti_unit);
|
|
||||||
return(ENOBUFS);
|
return(ENOBUFS);
|
||||||
}
|
}
|
||||||
m_new->m_len = m_new->m_pkthdr.len = MHLEN;
|
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. */
|
/* Allocate the mbuf. */
|
||||||
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
|
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
|
||||||
if (m_new == NULL) {
|
if (m_new == NULL) {
|
||||||
printf("ti%d: mbuf allocation failed "
|
|
||||||
"-- packet dropped!\n", sc->ti_unit);
|
|
||||||
return(ENOBUFS);
|
return(ENOBUFS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -862,7 +862,6 @@ epic_ifstart(ifp)
|
|||||||
if( NULL != m ){
|
if( NULL != m ){
|
||||||
EPIC_MGETCLUSTER(m);
|
EPIC_MGETCLUSTER(m);
|
||||||
if( NULL == m ){
|
if( NULL == m ){
|
||||||
printf(EPIC_FORMAT ": cannot allocate mbuf cluster\n",EPIC_ARGS(sc));
|
|
||||||
m_freem(m0);
|
m_freem(m0);
|
||||||
ifp->if_oerrors++;
|
ifp->if_oerrors++;
|
||||||
continue;
|
continue;
|
||||||
@ -940,7 +939,6 @@ epic_rx_done(sc)
|
|||||||
/* Try to get mbuf cluster */
|
/* Try to get mbuf cluster */
|
||||||
EPIC_MGETCLUSTER( buf->mbuf );
|
EPIC_MGETCLUSTER( buf->mbuf );
|
||||||
if( NULL == buf->mbuf ) {
|
if( NULL == buf->mbuf ) {
|
||||||
printf(EPIC_FORMAT ": cannot allocate mbuf cluster\n",EPIC_ARGS(sc));
|
|
||||||
buf->mbuf = m;
|
buf->mbuf = m;
|
||||||
desc->status = 0x8000;
|
desc->status = 0x8000;
|
||||||
sc->sc_if.if_ierrors++;
|
sc->sc_if.if_ierrors++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user