]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: hellcreek: avoid devlink resource IDs collision with PARENT_TOP
authorDavid Yang <mmyangfl@gmail.com>
Thu, 11 Jun 2026 07:08:49 +0000 (15:08 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Jun 2026 19:41:40 +0000 (12:41 -0700)
commit31d2b61ba2cc045654da46941ef07861402147df
tree733d79922f958706af3bbd25c393b74f56f1702d
parent89ccbd3fe83771a82344af9c25d4771933bbebc8
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>
drivers/net/dsa/hirschmann/hellcreek.h