]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netconsole: convert 'enabled' flag to enum for clearer state management
authorAndre Carvalho <asantostc@gmail.com>
Sun, 18 Jan 2026 11:00:22 +0000 (11:00 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 03:09:10 +0000 (19:09 -0800)
commita46bb0103c351766e165c13c7ee8dd52beb76dfc
tree0afd5510806625bac130102a3246f55c7e4fa12a
parentd793db4aa0db9ebcdd5ccde0a933323b778d1f2d
netconsole: convert 'enabled' flag to enum for clearer state management

This patch refactors the netconsole driver's target enabled state from a
simple boolean to an explicit enum (`target_state`).

This allow the states to be expanded to a new state in the upcoming
change.

Co-developed-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Andre Carvalho <asantostc@gmail.com>
Tested-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20260118-netcons-retrigger-v11-2-4de36aebcf48@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netconsole.c