Re: [PATCH net-next v2 4/4] netconsole: Increase MAX_USERDATA_ITEMS
From: Breno Leitao
Date: Fri Nov 14 2025 - 08:07:42 EST
On Thu, Nov 13, 2025 at 08:42:21AM -0800, Gustavo Luiz Duarte wrote:
> Increase MAX_USERDATA_ITEMS from 16 to 256 entries now that the userdata
> buffer is allocated dynamically.
>
> The previous limit of 16 was necessary because the buffer was statically
> allocated for all targets. With dynamic allocation, we can support more
> entries without wasting memory on targets that don't use userdata.
>
> This allows users to attach more metadata to their netconsole messages,
> which is useful for complex debugging and logging scenarios.
>
> Also update the testcase accordingly.
>
> Signed-off-by: Gustavo Luiz Duarte <gustavold@xxxxxxxxx>
Reviewed-by: Breno Leitao <leitao@xxxxxxxxxx>
Please expand netcons_fragmented_msg.sh selftest to have ~100 userdata,
so, we can exercise this code in NIPA.
Thanks for all this patchset and improving netconsole!
--breno