mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 13:52:50 +01:00
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 <[email protected]> Acked-by: Kurt Kanzenbach <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
1 parent
89ccbd3fe8
commit
31d2b61ba2
1 file changed
+1
@@ -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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user