public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2-next 0/3] devlink: show devlink instance index in dev output
@ 2026-03-16 15:44 Jiri Pirko
  2026-03-16 15:44 ` [PATCH iproute2-next 1/3] update kernel headers Jiri Pirko
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jiri Pirko @ 2026-03-16 15:44 UTC (permalink / raw)
  To: netdev; +Cc: stephen, dsahern

From: Jiri Pirko <jiri@nvidia.com>

Support for identifying devlink instances by a unique index was recently
added on the kernel side:
https://lore.kernel.org/all/20260312100407.551173-1-jiri@resnulli.us/

This patchset adds the necessary userspace support.

First, as a dependency, introduce a fallback for mnl_attr_get_uint()
to handle the NLA_UINT variable-width attribute type used by the
kernel for the index, with backward compatibility for older libmnl
versions.

Then, display the devlink instance index in dev show output when
the kernel provides it.

Jiri Pirko (3):
  update kernel headers
  mnl: add fallback implementation for mnl_attr_get_uint()
  devlink: show devlink instance index in dev output

 configure                    | 22 ++++++++++++++++++++++
 devlink/devlink.c            |  6 +++++-
 include/mnl_utils.h          |  4 ++++
 include/uapi/linux/devlink.h |  4 ++++
 lib/mnl_utils.c              | 17 +++++++++++++++++
 5 files changed, 52 insertions(+), 1 deletion(-)

-- 
2.51.1


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

end of thread, other threads:[~2026-03-23  0:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 15:44 [PATCH iproute2-next 0/3] devlink: show devlink instance index in dev output Jiri Pirko
2026-03-16 15:44 ` [PATCH iproute2-next 1/3] update kernel headers Jiri Pirko
2026-03-16 15:44 ` [PATCH iproute2-next 2/3] mnl: add fallback implementation for mnl_attr_get_uint() Jiri Pirko
2026-03-16 16:12   ` Stephen Hemminger
2026-03-17  8:17     ` Jiri Pirko
2026-03-18  2:31       ` David Ahern
2026-03-16 15:44 ` [PATCH iproute2-next 3/3] devlink: show devlink instance index in dev output Jiri Pirko
2026-03-23  0:20 ` [PATCH iproute2-next 0/3] " patchwork-bot+netdevbpf

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