Skip to content

Commit

Permalink
netkit: Add add netkit {head,tail}room to rt_link.yaml
Browse files Browse the repository at this point in the history
Add netkit {head,tail}room attribute support to the rt_link.yaml spec file.

Example:

  # ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_link.yaml \
   --do getlink --json '{"ifname": "nk0"}' --output-json | jq
  [...]
  "linkinfo": {
    "kind": "netkit",
    "data": {
      "primary": 0,
      "policy": "forward",
      "mode": "l3",
      "scrub": "default",
      "headroom": 0,
      "tailroom": 0,
      "peer-policy": "forward",
      "peer-scrub": "default"
    }
  },
  [...]

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://lore.kernel.org/bpf/20241220234658.490686-2-daniel@iogearbox.net
  • Loading branch information
borkmann committed Jan 6, 2025
1 parent b9ed315 commit cc529a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/netlink/specs/rt_link.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2166,6 +2166,12 @@ attribute-sets:
name: peer-scrub
type: u32
enum: netkit-scrub
-
name: headroom
type: u16
-
name: tailroom
type: u16

sub-messages:
-
Expand Down

0 comments on commit cc529a3

Please sign in to comment.