Skip to content

devlink: Warn on resource ID collision with PARENT_TOP

David Yang lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 1 replyApplied 5/5

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5net: dsa: dsa_loop: avoid devlink resource IDs collision with PARENT_TOPdrivers/net/dsa/dsa_loop.c+1 -00 repliesApplied
2/5net: dsa: b53: avoid devlink resource IDs collision with PARENT_TOPdrivers/net/dsa/b53/b53_common.c+1 -00 repliesApplied
3/5net: dsa: hellcreek: avoid devlink resource IDs collision with PARENT_TOPdrivers/net/dsa/hirschmann/hellcreek.h+1 -01 replyApplied
4/5net: dsa: mv88e6xxx: Avoid devlink resource IDs collision with PARENT_TOPdrivers/net/dsa/mv88e6xxx/devlink.c+5 -40 repliesApplied
5/5devlink: Warn on resource ID collision with PARENT_TOPnet/devlink/resource.c+2 -00 repliesApplied

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchKurt Kanzenbach
1/5
2/5
3/5A-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/5] devlink: Warn on resource ID collision with PARENT_TOP

Filter out the ambiguous case of

enum {
    MY_RESOURCE_ID_A,  /* == DEVLINK_RESOURCE_ID_PARENT_TOP ! */
    MY_RESOURCE_ID_B,
    ...
};

register(..., MY_RESOURCE_ID_A, DEVLINK_RESOURCE_ID_PARENT_TOP, ...); register(..., MY_RESOURCE_ID_B, MY_RESOURCE_ID_A, ...);

v1: https://lore.kernel.org/r/[email protected]
- make a patchset

David Yang (5):
net: dsa: dsa_loop: avoid devlink resource IDs collision with
PARENT_TOP
net: dsa: b53: avoid devlink resource IDs collision with PARENT_TOP
net: dsa: hellcreek: avoid devlink resource IDs collision with
PARENT_TOP
net: dsa: mv88e6xxx: Avoid devlink resource IDs collision with
PARENT_TOP
devlink: Warn on resource ID collision with PARENT_TOP

 drivers/net/dsa/b53/b53_common.c       | 1 +
 drivers/net/dsa/dsa_loop.c             | 1 +
 drivers/net/dsa/hirschmann/hellcreek.h | 1 +
 drivers/net/dsa/mv88e6xxx/devlink.c    | 9 +++++----
 net/devlink/resource.c                 | 2 ++
 5 files changed, 10 insertions(+), 4 deletions(-)
Signature · 1 line
2.53.0