summaryrefslogtreecommitdiffstats
path: root/sys/dev/fxp
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2001-11-02 05:10:40 +0000
committerjlemon <jlemon@FreeBSD.org>2001-11-02 05:10:40 +0000
commit9955d002c99e2d6ee6fe7bac78f7dd9393f8755b (patch)
tree8306d2807ad1bab13762f4191f605408dab7ef51 /sys/dev/fxp
parent269746c3101aef13eb1200ecbe5b938f72c4c330 (diff)
downloadFreeBSD-src-9955d002c99e2d6ee6fe7bac78f7dd9393f8755b.zip
FreeBSD-src-9955d002c99e2d6ee6fe7bac78f7dd9393f8755b.tar.gz
Emit a warning if the mbuf or mbuf cluster allocation failed.
Requested by: Mike Barcroft
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/if_fxp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index fe1c891..9cdf45c 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -1767,6 +1767,8 @@ fxp_add_rfabuf(struct fxp_softc *sc, struct mbuf *oldm)
if (m != NULL) {
MCLGET(m, M_DONTWAIT);
if ((m->m_flags & M_EXT) == 0) {
+ device_printf(sc->dev,
+ "cluster allocation failed, packet dropped!\n");
m_freem(m);
if (oldm == NULL)
return 1;
@@ -1774,6 +1776,8 @@ fxp_add_rfabuf(struct fxp_softc *sc, struct mbuf *oldm)
m->m_data = m->m_ext.ext_buf;
}
} else {
+ device_printf(sc->dev,
+ "mbuf allocation failed, packet dropped!\n");
if (oldm == NULL)
return 1;
m = oldm;
OpenPOWER on IntegriCloud