linux/Documentation/netlink
Jiri Pirko e18f3dc2be tools: ynl-gen: lift type requirement for attribute subsets
In case an attribute is used in a subset, the type has to be currently
specified. As the attribute is already defined in the original set, this
is a redundant information in yaml file, moreover, may lead to
inconsistencies.

Example:
attribute-sets:
    ...
    name: pin
    enum-name: dpll_a_pin
    attributes:
      ...
      -
        name: parent-id
        type: u32
      ...
  -
    name: pin-parent-device
    subset-of: pin
    attributes:
      -
        name: parent-id
        type: u32             <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Remove the requirement from schema files to specify the "type" for
attribute subsets.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20231006114436.1725425-2-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-10-09 19:44:57 -07:00
..
specs ynl: netdev: drop unnecessary enum-as-flags 2023-10-04 17:33:54 -07:00
genetlink-c.yaml tools: ynl-gen: lift type requirement for attribute subsets 2023-10-09 19:44:57 -07:00
genetlink-legacy.yaml tools: ynl-gen: lift type requirement for attribute subsets 2023-10-09 19:44:57 -07:00
genetlink.yaml tools: ynl-gen: lift type requirement for attribute subsets 2023-10-09 19:44:57 -07:00
netlink-raw.yaml tools: ynl-gen: lift type requirement for attribute subsets 2023-10-09 19:44:57 -07:00