netconsole: add target_state enum

Introduces a enum to track netconsole target state which is going to
replace the enabled boolean.

Signed-off-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-1-4de36aebcf48@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Breno Leitao
2026-01-21 19:09:10 -08:00
committed by Jakub Kicinski
parent 938b404e25
commit d793db4aa0
+5
View File
@@ -119,6 +119,11 @@ enum sysdata_feature {
MAX_SYSDATA_ITEMS = 4,
};
enum target_state {
STATE_DISABLED,
STATE_ENABLED,
};
/**
* struct netconsole_target - Represents a configured netconsole target.
* @list: Links this target into the target_list.