mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
bb87f2c796
commit
f6122900f4
@@ -1749,12 +1749,12 @@ operations:
|
||||
|
||||
attribute-set: rss
|
||||
|
||||
do: &rss-get-op
|
||||
do:
|
||||
request:
|
||||
attributes:
|
||||
- header
|
||||
- context
|
||||
reply:
|
||||
reply: &rss-reply
|
||||
attributes:
|
||||
- header
|
||||
- context
|
||||
@@ -1762,6 +1762,11 @@ operations:
|
||||
- indir
|
||||
- hkey
|
||||
- input_xfrm
|
||||
dump:
|
||||
request:
|
||||
attributes:
|
||||
- header
|
||||
reply: *rss-reply
|
||||
-
|
||||
name: plca-get-cfg
|
||||
doc: Get PLCA params.
|
||||
|
||||
Reference in New Issue
Block a user