Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Felix Maurer and committed by
Jakub Kicinski
c294432b 55f943c6

+32
+32
Documentation/netlink/specs/rt-link.yaml
··· 1914 1914 type: binary 1915 1915 struct: ifla-geneve-port-range 1916 1916 - 1917 + name: linkinfo-hsr-attrs 1918 + name-prefix: ifla-hsr- 1919 + attributes: 1920 + - 1921 + name: slave1 1922 + type: u32 1923 + - 1924 + name: slave2 1925 + type: u32 1926 + - 1927 + name: multicast-spec 1928 + type: u8 1929 + - 1930 + name: supervision-addr 1931 + type: binary 1932 + display-hint: mac 1933 + - 1934 + name: seq-nr 1935 + type: u16 1936 + - 1937 + name: version 1938 + type: u8 1939 + - 1940 + name: protocol 1941 + type: u8 1942 + - 1943 + name: interlink 1944 + type: u32 1945 + - 1917 1946 name: linkinfo-iptun-attrs 1918 1947 name-prefix: ifla-iptun- 1919 1948 attributes: ··· 2328 2299 - 2329 2300 value: geneve 2330 2301 attribute-set: linkinfo-geneve-attrs 2302 + - 2303 + value: hsr 2304 + attribute-set: linkinfo-hsr-attrs 2331 2305 - 2332 2306 value: ipip 2333 2307 attribute-set: linkinfo-iptun-attrs