a7408b56 | 04-Apr-2024 |
Hangbin Liu <liuhangbin@gmail.com> |
ynl: support binary and integer sub-type for indexed-array
Add binary and integer sub-type support for indexed-array to display bond arp and ns targets. Here is what the result looks like:
# ip li
ynl: support binary and integer sub-type for indexed-array
Add binary and integer sub-type support for indexed-array to display bond arp and ns targets. Here is what the result looks like:
# ip link add bond0 type bond mode 1 \ arp_ip_target 192.168.1.1,192.168.1.2 ns_ip6_target 2001::1,2001::2 # ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_link.yaml \ --do getlink --json '{"ifname": "bond0"}' --output-json | jq '.linkinfo'
"arp-ip-target": [ "192.168.1.1", "192.168.1.2" ], [...] "ns-ip6-target": [ "2001::1", "2001::2" ],
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Link: https://lore.kernel.org/r/20240404063114.1221532-3-liuhangbin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
2db8abf0 | 25-Aug-2023 |
Donald Hunter <donald.hunter@gmail.com> |
doc/netlink: Document the netlink-raw schema extensions
Add a doc page for netlink-raw that describes the schema attributes needed for netlink-raw.
Signed-off-by: Donald Hunter <donald.hunter@gmail
doc/netlink: Document the netlink-raw schema extensions
Add a doc page for netlink-raw that describes the schema attributes needed for netlink-raw.
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://lore.kernel.org/r/20230825122756.7603-5-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
04eac393 | 27-Mar-2023 |
Donald Hunter <donald.hunter@gmail.com> |
docs: netlink: document the sub-type attribute property
Add a definition for sub-type to the protocol spec doc and a description of its usage for C arrays in genetlink-legacy.
Signed-off-by: Donald
docs: netlink: document the sub-type attribute property
Add a definition for sub-type to the protocol spec doc and a description of its usage for C arrays in genetlink-legacy.
Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
ad4fafcd | 01-Mar-2023 |
Jakub Kicinski <kuba@kernel.org> |
tools: ynl: use 1 as the default for first entry in attrs/ops
Pretty much all families use value: 1 or reserve as unspec the first entry in attribute set and the first operation. Make this the defau
tools: ynl: use 1 as the default for first entry in attrs/ops
Pretty much all families use value: 1 or reserve as unspec the first entry in attribute set and the first operation. Make this the default. Update documentation (the doc for values of operations just refers back to doc for attrs so updating only attrs).
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
01e47a37 | 31-Jan-2023 |
Jakub Kicinski <kuba@kernel.org> |
docs: netlink: add a starting guide for working with specs
We have a bit of documentation about the internals of Netlink and the specs, but really the goal is for most people to not worry about thos
docs: netlink: add a starting guide for working with specs
We have a bit of documentation about the internals of Netlink and the specs, but really the goal is for most people to not worry about those. Add a practical guide for beginners who want to poke at the specs.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|