]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
geneve, specs: Add port range to rt_link specification
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 26 Feb 2025 18:20:30 +0000 (19:20 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Feb 2025 00:54:54 +0000 (16:54 -0800)
commit5a41a00cd5d5bac4c7f081f2333df2256eb74d90
tree23335187b83c34380cd09024e705771584f86232
parente1f95b1992b8cc31e37505787806918b0447909b
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: Daniel Borkmann <daniel@iogearbox.net>
Link: https://patch.msgid.link/20250226182030.89440-2-daniel@iogearbox.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/rt_link.yaml