]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netlink: specs: rt-link: Add attributes for hsr
authorFelix Maurer <fmaurer@redhat.com>
Wed, 12 Nov 2025 17:29:53 +0000 (18:29 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 14 Nov 2025 01:46:31 +0000 (17:46 -0800)
commitc294432be1509205022de2cb5bf2a8e513861f4c
tree1bdff98e61662df720d453b75795592de9f7c290
parent55f943c6af6d12a1b44978f7e87c90f9a9c05806
netlink: specs: rt-link: Add attributes for hsr

YNL wasn't able to decode the linkinfo from hsr interfaces. Add the
linkinfo attribute definitions for hsr interfaces. Example output now
looks like this:

$ ynl --spec Documentation/netlink/specs/rt-link.yaml --do getlink \
    --json '{"ifname": "hsr0"}' --output-json | jq .linkinfo
{
  "kind": "hsr",
  "data": {
    "slave1": 15,
    "slave2": 13,
    "supervision-addr": "01:15:4e:00:01:00",
    "seq-nr": 64511,
    "version": 1,
    "protocol": 0
  }
}

Signed-off-by: Felix Maurer <fmaurer@redhat.com>
Link: https://patch.msgid.link/926077a70de614f1539c905d06515e258905255e.1762968225.git.fmaurer@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/rt-link.yaml