Commit 5a41a00c authored by Daniel Borkmann's avatar Daniel Borkmann Committed by Jakub Kicinski
Browse files

geneve, specs: Add port range to rt_link specification



Add the port range to rt_link, example:

  # tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/rt_link.yaml \
    --do getlink --json '{"ifname": "geneve1"}' --output-json | jq
  {
    "ifname": "geneve1",
    [...]
    "linkinfo": {
      "kind": "geneve",
      "data": {
        "id": 1000,
        "remote": "147.28.227.100",
        "udp-csum": 0,
        "ttl": 0,
        "tos": 0,
        "label": 0,
        "df": 0,
        "port": 49431,
        "udp-zero-csum6-rx": 1,
        "ttl-inherit": 0,
        "port-range": {
          "low": 4000,
          "high": 5000
        }
      }
    },
    [...]
  }

Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://patch.msgid.link/20250226182030.89440-2-daniel@iogearbox.net


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent e1f95b19
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -770,6 +770,18 @@ definitions:
      -
        name: to
        type: u32
  -
    name: ifla-geneve-port-range
    type: struct
    members:
      -
        name: low
        type: u16
        byte-order: big-endian
      -
        name: high
        type: u16
        byte-order: big-endian
  -
    name: ifla-vf-mac
    type: struct
@@ -1915,6 +1927,10 @@ attribute-sets:
      -
        name: inner-proto-inherit
        type: flag
      -
        name: port-range
        type: binary
        struct: ifla-geneve-port-range
  -
    name: linkinfo-iptun-attrs
    name-prefix: ifla-iptun-