git: c3577fcf3fd0 - main - dpaa2: improve error messages and log requested cluster size
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Feb 2026 08:07:52 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=c3577fcf3fd0494cc992021d4debbca09241a49e
commit c3577fcf3fd0494cc992021d4debbca09241a49e
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-08-20 21:04:49 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-02-27 08:07:26 +0000
dpaa2: improve error messages and log requested cluster size
If m_getjcl() fails we want to know the size we requested in order to
have a chance to evaluate the problem better.
MFC after: 3 days
Reviewed by: tuexen
Differential Revision: https://reviews.freebsd.org/D55555
---
sys/dev/dpaa2/dpaa2_buf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/dev/dpaa2/dpaa2_buf.c b/sys/dev/dpaa2/dpaa2_buf.c
index 7739eda5d8de..8505b074fe4f 100644
--- a/sys/dev/dpaa2/dpaa2_buf.c
+++ b/sys/dev/dpaa2/dpaa2_buf.c
@@ -154,7 +154,8 @@ dpaa2_buf_seed_rxb(device_t dev, struct dpaa2_buf *buf, int size,
if (__predict_true(buf->m == NULL)) {
buf->m = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, size);
if (__predict_false(buf->m == NULL)) {
- device_printf(dev, "%s: m_getjcl() failed\n", __func__);
+ device_printf(dev, "%s: m_getjcl(%d) failed\n",
+ __func__, size);
error = ENOMEM;
goto fail_mbuf_alloc;
}