netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] devlink: sanitize variable typed attributes
@ 2025-05-02 11:38 Jiri Pirko
  2025-05-02 11:38 ` [PATCH net-next 1/5] tools: ynl-gen: extend block_start/end by noind arg Jiri Pirko
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Jiri Pirko @ 2025-05-02 11:38 UTC (permalink / raw)
  To: netdev; +Cc: davem, edumazet, kuba, pabeni, saeedm, horms, donald.hunter

From: Jiri Pirko <jiri@nvidia.com>

This is continuation based on first two patches
of https://lore.kernel.org/netdev/20250425214808.507732-1-saeed@kernel.org/

Better to take it as a separate patchset, as the rest of the original
patchset is probably settled.

This patchset is taking care of incorrect usage of internal NLA_* values
in uapi, introduces new enum (in patch #3) that shadows NLA_* values and
makes that part of UAPI.

The last two patches removes unnecessary translations with maintaining
clear devlink param driver api. I hope this might be acceptable.

Please check and merge to get this over with :)

Jiri Pirko (5):
  tools: ynl-gen: extend block_start/end by noind arg
  tools: ynl-gen: allow noncontiguous enums
  devlink: define enum for attr types of dynamic attributes
  devlink: avoid param type value translations
  devlink: use DEVLINK_VAR_ATTR_TYPE_* instead of NLA_* in fmsg

 Documentation/netlink/specs/devlink.yaml | 24 +++++++++++
 include/net/devlink.h                    | 10 ++---
 include/uapi/linux/devlink.h             | 17 ++++++++
 net/devlink/health.c                     | 52 +++++++++-------------
 net/devlink/netlink_gen.c                | 21 ++++++++-
 net/devlink/param.c                      | 46 +-------------------
 tools/net/ynl/pyynl/ynl_gen_c.py         | 55 +++++++++++++++++++++---
 7 files changed, 137 insertions(+), 88 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-05-04 18:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-02 11:38 [PATCH net-next 0/5] devlink: sanitize variable typed attributes Jiri Pirko
2025-05-02 11:38 ` [PATCH net-next 1/5] tools: ynl-gen: extend block_start/end by noind arg Jiri Pirko
2025-05-03  1:37   ` Jakub Kicinski
2025-05-04 18:25     ` Jiri Pirko
2025-05-02 11:38 ` [PATCH net-next 2/5] tools: ynl-gen: allow noncontiguous enums Jiri Pirko
2025-05-03  1:43   ` Jakub Kicinski
2025-05-04 18:25     ` Jiri Pirko
2025-05-02 11:38 ` [PATCH net-next 3/5] devlink: define enum for attr types of dynamic attributes Jiri Pirko
2025-05-03  1:46   ` Jakub Kicinski
2025-05-04 18:25     ` Jiri Pirko
2025-05-02 11:38 ` [PATCH net-next 4/5] devlink: avoid param type value translations Jiri Pirko
2025-05-02 11:38 ` [PATCH net-next 5/5] devlink: use DEVLINK_VAR_ATTR_TYPE_* instead of NLA_* in fmsg Jiri Pirko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).