Thread (21 messages) 21 messages, 2 authors, 2026-01-13

Re: [PATCH RFC net-next v2 3/8] cadence: macb: Add page pool support handle multi-descriptor frame rx

From: Théo Lebrun <theo.lebrun@bootlin.com>
Date: 2026-01-13 10:35:16

On Mon Jan 12, 2026 at 7:43 PM CET, Paolo Valerio wrote:
On 12 Jan 2026 at 03:16:24 PM, Paolo Valerio [off-list ref] wrote:
quoted
On 08 Jan 2026 at 04:43:43 PM, Théo Lebrun [off-list ref] wrote:
quoted
nit: while in macb_init_rx_buffer_size(), can you tweak the debug line
from mtu & rx_buffer_size to also have rx_headroom and total? So that
we have everything available to understand what is going on buffer size
wise. Something like:

-       netdev_dbg(bp->dev, "mtu [%u] rx_buffer_size [%zu]\n",
-                  bp->dev->mtu, bp->rx_buffer_size);
+       netdev_info(bp->dev, "mtu [%u] rx_buffer_size [%zu] rx_headroom [%zu] total [%u]\n",
+                   bp->dev->mtu, bp->rx_buffer_size, bp->rx_headroom,
+                   gem_total_rx_buffer_size(bp));
I missed this before:
I assume so, but just checking, is the promotion from dbg to info also
wanted?
Ah no it was a mistake. I was lazy during my testing: rather than
`#define DEBUG` I changed netdev_dbg() to netdev_info().

I wouldn't mind but that isn't the usual kernel policy wrt to logs.
A working driver should be silent.

Thanks,

--
Théo Lebrun, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help