Re: [PATCH RFC net-next v3 3/8] netconsole: Helper to count number of used entries

2025-01-30 Thread Simon Horman
On Fri, Jan 24, 2025 at 07:16:42AM -0800, Breno Leitao wrote: > Add a helper function nr_extradata_entries() to count the number of used > extradata entries in a netconsole target. This refactors the duplicate > code for counting entries into a single function, which will be reused > by upcoming CP

[PATCH RFC net-next v3 3/8] netconsole: Helper to count number of used entries

2025-01-24 Thread Breno Leitao
Add a helper function nr_extradata_entries() to count the number of used extradata entries in a netconsole target. This refactors the duplicate code for counting entries into a single function, which will be reused by upcoming CPU sysdata changes. The helper uses list_count_nodes() to count the nu