Skip to content

Commit

Permalink
netkit: Add add netkit scrub support to rt_link.yaml
Browse files Browse the repository at this point in the history
Add netkit scrub 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",
      "peer-policy": "forward",
      "peer-scrub": "default"
    }
  },
  [...]

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Nikolay Aleksandrov <razor@blackwall.org>
  • Loading branch information
borkmann committed Oct 3, 2024
1 parent 31b19e1 commit 2cd7f78
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Documentation/netlink/specs/rt_link.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,13 @@ definitions:
- name: l2
- name: l3

-
name: netkit-scrub
type: enum
entries:
- name: none
- name: default

attribute-sets:
-
name: link-attrs
Expand Down Expand Up @@ -2147,6 +2154,14 @@ attribute-sets:
name: mode
type: u32
enum: netkit-mode
-
name: scrub
type: u32
enum: netkit-scrub
-
name: peer-scrub
type: u32
enum: netkit-scrub

sub-messages:
-
Expand Down

0 comments on commit 2cd7f78

Please sign in to comment.