Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Feb 2002 19:03:20 +0000 (GMT)
From:      Mike Silbersack <silby@silby.com>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        freebsd-net@freebsd.org
Subject:   [patch] removal of mbuf allocation failure messages from if_fxp
Message-ID:  <20020203190141.E11305-200000@patrocles.silby.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Luigi, does this patch look good?  AFAIK, the code you added should handle
printing errors in these two cases; is that correct?

Thanks,

Mike "Silby" Silbersack

[-- Attachment #2 --]
--- if_fxp.c	Sun Feb  3 19:01:14 2002
+++ if_fxp.c.old	Sun Feb  3 18:59:55 2002
@@ -1836,6 +1836,8 @@
 	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;
@@ -1843,6 +1845,8 @@
 			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;
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020203190141.E11305-200000>