netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] netlink: specs: Add neigh and rule YNL specs
@ 2024-11-06  9:07 Donald Hunter
  2024-11-06  9:07 ` [PATCH net-next v3 1/2] netlink: specs: Add a spec for neighbor tables in rtnetlink Donald Hunter
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Donald Hunter @ 2024-11-06  9:07 UTC (permalink / raw)
  To: netdev, Jakub Kicinski, David S. Miller, Eric Dumazet,
	Paolo Abeni, Simon Horman
  Cc: donald.hunter, Ido Schimmel, Stanislav Fomichev, Donald Hunter

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

-- 
2.47.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-11-08  4:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06  9:07 [PATCH net-next v3 0/2] netlink: specs: Add neigh and rule YNL specs Donald Hunter
2024-11-06  9:07 ` [PATCH net-next v3 1/2] netlink: specs: Add a spec for neighbor tables in rtnetlink Donald Hunter
2024-11-06  9:07 ` [PATCH net-next v3 2/2] netlink: specs: Add a spec for FIB rule management Donald Hunter
2024-11-07  1:25 ` [PATCH net-next v3 0/2] netlink: specs: Add neigh and rule YNL specs Jakub Kicinski
2024-11-08  4:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).