git: ad85b6b7c71d - stable/15 - dpaa2: improve error messages and log requested cluster size
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 Mar 2026 11:03:41 UTC
The branch stable/15 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=ad85b6b7c71de569695f9364687505154c76e8f4
commit ad85b6b7c71de569695f9364687505154c76e8f4
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-08-20 21:04:49 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-03-09 11:03:09 +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.
Reviewed by: tuexen
Differential Revision: https://reviews.freebsd.org/D55555
(cherry picked from commit c3577fcf3fd0494cc992021d4debbca09241a49e)
---
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;
}