mbox series

[net-next,v3,0/2] netlink: specs: Add neigh and rule YNL specs

Message ID 20241106090718.64713-1-donald.hunter@gmail.com (mailing list archive)
Headers show
Series netlink: specs: Add neigh and rule YNL specs | expand

Message

Donald Hunter Nov. 6, 2024, 9:07 a.m. UTC
Add YNL specs for the FDB neighbour tables and FIB rules from the
rtnelink families.

v2 -> v3:
 - removed spurious dump parameter, thanks to Ido Schimmel

v1 -> v2:
 - added 'dscp' attribute, thanks to Ido Schimmel
 - fixed types in fib-rule-uid-range, thanks to Stanislav Fomichev

Example usage:

./tools/net/ynl/cli.py \
    --spec Documentation/netlink/specs/rt_neigh.yaml \
    --dump getneigh
[{'cacheinfo': {'confirmed': 122664055,
                'refcnt': 0,
                'updated': 122658055,
                'used': 122658055},
  'dst': '0.0.0.0',
  'family': 2,
  'flags': set(),
  'ifindex': 5,
  'lladr': '',
  'probes': 0,
  'state': {'noarp'},
  'type': 'broadcast'},
  ...]

./tools/net/ynl/cli.py \
    --spec Documentation/netlink/specs/rt_rule.yaml \
    --dump getrule --json '{"family": 2}'

[{'action': 'to-tbl',
  'dst-len': 0,
  'family': 2,
  'flags': 0,
  'protocol': 2,
  'src-len': 0,
  'suppress-prefixlen': '0xffffffff',
  'table': 255,
  'tos': 0},
  ... ]

Donald Hunter (2):
  netlink: specs: Add a spec for neighbor tables in rtnetlink
  netlink: specs: Add a spec for FIB rule management

 Documentation/netlink/specs/rt_neigh.yaml | 442 ++++++++++++++++++++++
 Documentation/netlink/specs/rt_rule.yaml  | 242 ++++++++++++
 2 files changed, 684 insertions(+)
 create mode 100644 Documentation/netlink/specs/rt_neigh.yaml
 create mode 100644 Documentation/netlink/specs/rt_rule.yaml

Comments

Jakub Kicinski Nov. 7, 2024, 1:25 a.m. UTC | #1
On Wed,  6 Nov 2024 09:07:16 +0000 Donald Hunter wrote:
> Add YNL specs for the FDB neighbour tables and FIB rules from the
> rtnelink families.

In case Paolo wants to apply:

Acked-by: Jakub Kicinski <kuba@kernel.org>

I haven't checked that the definitions match but purely from the spec
perspective - LGMT.
patchwork-bot+netdevbpf@kernel.org Nov. 8, 2024, 4:50 a.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed,  6 Nov 2024 09:07:16 +0000 you wrote:
> Add YNL specs for the FDB neighbour tables and FIB rules from the
> rtnelink families.
> 
> v2 -> v3:
>  - removed spurious dump parameter, thanks to Ido Schimmel
> 
> v1 -> v2:
>  - added 'dscp' attribute, thanks to Ido Schimmel
>  - fixed types in fib-rule-uid-range, thanks to Stanislav Fomichev
> 
> [...]

Here is the summary with links:
  - [net-next,v3,1/2] netlink: specs: Add a spec for neighbor tables in rtnetlink
    https://git.kernel.org/netdev/net-next/c/bc515ed06652
  - [net-next,v3,2/2] netlink: specs: Add a spec for FIB rule management
    https://git.kernel.org/netdev/net-next/c/a852e3c35641

You are awesome, thank you!