-
- Downloads
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>
Showing
- Documentation/netlink/specs/ethtool.yaml 7 additions, 2 deletionsDocumentation/netlink/specs/ethtool.yaml
- net/ethtool/netlink.c 2 additions, 0 deletionsnet/ethtool/netlink.c
- net/ethtool/netlink.h 2 additions, 0 deletionsnet/ethtool/netlink.h
- net/ethtool/rss.c 135 additions, 0 deletionsnet/ethtool/rss.c
Loading
Please register or sign in to comment