Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/5] devlink: Warn on resource ID collision with PARENT_TOP
@ 2026-06-11  7:08 David Yang
  2026-06-11  7:08 ` [PATCH net-next v2 1/5] net: dsa: dsa_loop: avoid devlink resource IDs " David Yang
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: David Yang @ 2026-06-11  7:08 UTC (permalink / raw)
  To: netdev
  Cc: David Yang, Florian Fainelli, Jonas Gorski, Andrew Lunn,
	Vladimir Oltean, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Kurt Kanzenbach, Jiri Pirko, Simon Horman,
	linux-kernel

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/20260610062554.769892-1-mmyangfl@gmail.com
  - 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(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-06-11  7:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11  7:08 [PATCH net-next v2 0/5] devlink: Warn on resource ID collision with PARENT_TOP David Yang
2026-06-11  7:08 ` [PATCH net-next v2 1/5] net: dsa: dsa_loop: avoid devlink resource IDs " David Yang
2026-06-11  7:08 ` [PATCH net-next v2 2/5] net: dsa: b53: " David Yang
2026-06-11  7:08 ` [PATCH net-next v2 3/5] net: dsa: hellcreek: " David Yang
2026-06-11  7:39   ` Kurt Kanzenbach
2026-06-11  7:08 ` [PATCH net-next v2 4/5] net: dsa: mv88e6xxx: Avoid " David Yang
2026-06-11  7:08 ` [PATCH net-next v2 5/5] devlink: Warn on resource ID " David Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox