]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ethtool: rss: support dumping RSS contexts
authorJakub Kicinski <kuba@kernel.org>
Sat, 10 Aug 2024 05:37:25 +0000 (22:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Aug 2024 13:16:24 +0000 (14:16 +0100)
commitf6122900f4e28bfcb8abc76e1f7b83a1e0d8afd3
tree3ccca3e26431fc6b2746fab0f78bce3eabea274e
parentbb87f2c7968eaebafa130f0618dea554700bb74b
ethtool: rss: support dumping RSS contexts

Now that we track RSS contexts in the core we can easily dump
them. This is a major introspection improvement, as previously
the only way to find all contexts would be to try all ids
(of which there may be 2^32 - 1).

Don't use the XArray iterators (like xa_for_each_start()) as they
do not move the index past the end of the array once done, which
caused multiple bugs in Netlink dumps in the past.

Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/netlink/specs/ethtool.yaml
net/ethtool/netlink.c
net/ethtool/netlink.h
net/ethtool/rss.c