Commit 12e74931 authored by Matthieu Baerts (NGI0)'s avatar Matthieu Baerts (NGI0) Committed by Jakub Kicinski
Browse files

netlink: specs: explicitly declare block scalar strings



In YAML, it is allowed to declare a scalar strings at the next lines
without explicitly declaring them as a block. Yet, they looks weird, and
can cause issues when ':' or '#' are present.

The modified lines didn't have issues with the special characters, but
it seems better to explicitly declare such blocks as scalar strings to
encourage people to "properly" declare future scalar strings.

The right angle bracket is used with a minus sign to indicate that the
folded style should be used without adding extra newlines. By doing
that, the output is not changed compared to what was done before this
patch.

Suggested-by: default avatarDonald Hunter <donald.hunter@gmail.com>
Signed-off-by: default avatarMatthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250913-net-next-ynl-attr-doc-rst-v3-3-4f06420d87db@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 515c0ead
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ name: conntrack
protocol: netlink-raw
protonum: 12

doc:
doc: >-
  Netfilter connection tracking subsystem over nfnetlink

definitions:
+11 −11
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
---
name: netdev

doc:
doc: >-
  netdev configuration over generic netlink.

definitions:
@@ -13,33 +13,33 @@ definitions:
    entries:
      -
        name: basic
        doc:
        doc: >-
          XDP features set supported by all drivers
          (XDP_ABORTED, XDP_DROP, XDP_PASS, XDP_TX)
      -
        name: redirect
        doc:
        doc: >-
          The netdev supports XDP_REDIRECT
      -
        name: ndo-xmit
        doc:
        doc: >-
          This feature informs if netdev implements ndo_xdp_xmit callback.
      -
        name: xsk-zerocopy
        doc:
        doc: >-
          This feature informs if netdev supports AF_XDP in zero copy mode.
      -
        name: hw-offload
        doc:
        doc: >-
          This feature informs if netdev supports XDP hw offloading.
      -
        name: rx-sg
        doc:
        doc: >-
          This feature informs if netdev implements non-linear XDP buffer
          support in the driver napi callback.
      -
        name: ndo-xmit-sg
        doc:
        doc: >-
          This feature informs if netdev implements non-linear XDP buffer
          support in ndo_xdp_xmit callback.
  -
@@ -67,15 +67,15 @@ definitions:
    entries:
      -
        name: tx-timestamp
        doc:
        doc: >-
          HW timestamping egress packets is supported by the driver.
      -
        name: tx-checksum
        doc:
        doc: >-
          L3 checksum HW offload is supported by the driver.
      -
        name: tx-launch-time-fifo
        doc:
        doc: >-
          Launch time HW offload is supported by the driver.
  -
    name: queue-type
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ name: nftables
protocol: netlink-raw
protonum: 12

doc:
doc: >-
  Netfilter nftables configuration over netlink.

definitions:
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
name: nl80211
protocol: genetlink-legacy

doc:
doc: >-
  Netlink API for 802.11 wireless devices

definitions:
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ version: 2
protocol: genetlink-legacy
uapi-header: linux/openvswitch.h

doc:
doc: >-
  OVS datapath configuration over generic netlink.

definitions:
Loading