Skip to content

devlink: sanitize variable typed attributes

Jiri Pirko netdev 2 versions – 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 · linked by author and title

  1. v2 Latest4 patches 2 repliesApplied 4/4
  2. v15 patches 6 repliesSuperseded

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4tools: ynl-gen: allow noncontiguous enumstools/net/ynl/pyynl/ynl_gen_c.py+52 -62 repliesApplied
2/4devlink: define enum for attr types of dynamic attributesDocumentation/netlink/specs/devlink.yaml include/uapi/linux/devlink.h net/devlink/health.c +2 more+97 -180 repliesApplied
3/4devlink: avoid param type value translationsinclude/net/devlink.h net/devlink/param.c+7 -490 repliesApplied
4/4devlink: use DEVLINK_VAR_ATTR_TYPE_* instead of NLA_* in fmsgnet/devlink/health.c+21 -440 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net-next v2 0/4] devlink: sanitize variable typed attributes

From: Jiri Pirko <[email protected]>

This is continuation based on first two patches
of https://lore.kernel.org/netdev/[email protected]/

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 #2) 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 (4):
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             | 15 ++++++
 net/devlink/health.c                     | 52 +++++++++------------
 net/devlink/netlink_gen.c                | 29 +++++++++++-
 net/devlink/param.c                      | 46 +------------------
 tools/net/ynl/pyynl/ynl_gen_c.py         | 58 +++++++++++++++++++++---
 7 files changed, 147 insertions(+), 87 deletions(-)
Signature · 1 line
2.49.0