[PATCH net-next v6 1/5] netconsole: add target_state enum

From: Andre Carvalho

Date: Fri Nov 21 2025 - 07:49:21 EST


From: Breno Leitao <leitao@xxxxxxxxxx>

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

Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
Signed-off-by: Andre Carvalho <asantostc@xxxxxxxxx>
---
drivers/net/netconsole.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index 9cb4dfc242f5..e2ec09f238a0 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/netconsole.c
@@ -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.

--
2.52.0