Subject: Re: [PATCH net-next v3 11/12] doc/netlink: Add spec for rt link messages

From: Donald Hunter <[email-masked]>
Date: Wed, 23 Aug 2023 08:33:53 +0100

Donald Hunter <[email-masked]> writes:
>
> +operations:
> +  enum-model: directional
> +  list:
> +    -
> +      name: newlink
> +      doc: Create a new link.
> +      attribute-set: link-attrs
> +      fixed-header: ifinfomsg
> +      do:
> +        request:
> +          value: 16
> +          attributes:
> +            - ifi-index
> +    -
> +      name: dellink
> +      doc: Delete an existing link.
> +      attribute-set: link-attrs
> +      fixed-header: ifinfomsg
> +      do:
> +        request:
> +          value: 16
> +          attributes:
> +            - ifi-index
> +    -
> +      name: getlink
> +      doc: Get / dump information about a link.
> +      attribute-set: link-attrs
> +      fixed-header: ifinfomsg
> +      do:
> +        request:
> +          value: 18
> +          attributes:
> +            - ifi-index
> +        reply:
> +          value: 16
> +          attributes:
> +            - ifi-index
> +    -
> +      name: setlink
> +      doc: Set information about a link.
> +      value: 19
> +      attribute-set: link-attrs
> +      fixed-header: ifinfomsg
> +      do:
> +        request:
> +          attributes:
> +            - ifname
> +    -
> +      name: getstats
> +      doc: Get / dump link stats.
> +      attribute-set: stats-attrs
> +      fixed-header: if_stats_msg
> +      dump:
> +        request:
> +          value: 94
> +          attributes:
> +            - ifindex
> +        reply:
> +          value: 92

The operations are missing detailed attribute lists. I'll fix in a v4.

> +mcast-groups:
> +  list:
> +    -
> +      name: rtnlgrp-link
> +      value: 1