On Tue, Jun 24, 2025 at 08:51:15PM +0800, Wang Liang wrote:Hi! Thanks for your review!
Ipv6 ndisc uses ND_PRINTK to print logs. However it only works whenIs there a good reason to do this instead of using dynamic debug? Note
ND_DEBUG was set in the compilation phase. This patch adds sysctl
ndisc_debug, so we can change the print switch when system is running and
get ipv6 ndisc log to debug.
that we will never be able to remove this sysctl.
Users of vanilla kernels can only see the messages printed with 'val'
being 0 or 1. Maybe convert them to call net_{err,warn}_ratelimited()
instead of ND_PRINTK() and convert the rest to net_dbg_ratelimited() so
that users will be able to enable / disable them during runtime via the
dynamic debug interface?