aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-01-05 22:09:10 -0800
committerJakub Kicinski <kuba@kernel.org>2023-01-05 22:13:40 -0800
commit3d759e9e24c38758abc19a4f5e1872a6460d5745 (patch)
treed40bbd8361fe6fa0b66d5fcc3169b46387b55ee2 /scripts/bpf_doc.py
parent0da6855378b9e89c025d3eb43125712498b71e0e (diff)
parent5ce76d78b99650c0b22f466060d8b75df9123511 (diff)
downloadlinux-3d759e9e24c38758abc19a4f5e1872a6460d5745.tar.gz
linux-3d759e9e24c38758abc19a4f5e1872a6460d5745.tar.bz2
linux-3d759e9e24c38758abc19a4f5e1872a6460d5745.zip
Merge branch 'devlink-code-split-and-structured-instance-walk'
Jakub Kicinski says: ==================== devlink: code split and structured instance walk Split devlink.c into a handful of files, trying to keep the "core" code away from all the command-specific implementations. The core code has been quite scattered until now. Going forward we can consider using a source file per-subobject, I think that it's quite beneficial to newcomers (based on relative ease with which folks contribute to ethtool vs devlink). But this series doesn't split everything out, yet - partially due to backporting concerns, but mostly due to lack of time. Bulk of the netlink command handling is left in a leftover.c file. Introduce a context structure for dumps, and use it to store the devlink instance ID of the last dumped devlink instance. This means we don't have to restart the walk from 0 each time. Finally - introduce a "structured walk". A centralized dump handler in devlink/netlink.c which walks the devlink instances, deals with refcounting/locking, simplifying the per-object implementations quite a bit. Inspired by the ethtool code. v1: https://lore.kernel.org/all/20230104041636.226398-1-kuba@kernel.org/ RFC: https://lore.kernel.org/all/20221215020155.1619839-1-kuba@kernel.org/ ==================== Link: https://lore.kernel.org/r/20230105040531.353563-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions