summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Yang <mmyangfl@gmail.com>2026-06-11 15:08:49 +0800
committerJakub Kicinski <kuba@kernel.org>2026-06-15 12:41:40 -0700
commit31d2b61ba2cc045654da46941ef07861402147df (patch)
tree733d79922f958706af3bbd25c393b74f56f1702d
parent89ccbd3fe83771a82344af9c25d4771933bbebc8 (diff)
net: dsa: hellcreek: avoid devlink resource IDs collision with PARENT_TOP
This might not cause real problems, but the hellcreek devlink resource ID collides with the sentinel DEVLINK_RESOURCE_ID_PARENT_TOP (0). Avoid it by keeping the real resource IDs starting at 1. Signed-off-by: David Yang <mmyangfl@gmail.com> Acked-by: Kurt Kanzenbach <kurt@linutronix.de> Link: https://patch.msgid.link/20260611070856.889700-4-mmyangfl@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/dsa/hirschmann/hellcreek.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/hirschmann/hellcreek.h b/drivers/net/dsa/hirschmann/hellcreek.h
index 851822adb09e..b8b59f3b10e1 100644
--- a/drivers/net/dsa/hirschmann/hellcreek.h
+++ b/drivers/net/dsa/hirschmann/hellcreek.h
@@ -311,6 +311,7 @@ struct hellcreek {
/* Devlink resources */
enum hellcreek_devlink_resource_id {
+ HELLCREEK_DEVLINK_PARAM_ID_NONE, /* DEVLINK_RESOURCE_ID_PARENT_TOP */
HELLCREEK_DEVLINK_PARAM_ID_VLAN_TABLE,
HELLCREEK_DEVLINK_PARAM_ID_FDB_TABLE,
};