ethtool: rss: support skipping contexts during dump

Applications may want to deal with dynamic RSS contexts only.
So dumping context 0 will be counter-productive for them.
Support starting the dump from a given context ID.

Alternative would be to implement a dump flag to skip just
context 0, not sure which is better...

Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jakub Kicinski
2024-08-09 22:37:26 -07:00
committed by David S. Miller
parent f6122900f4
commit 3d50c66c06
5 changed files with 27 additions and 4 deletions

View File

@@ -1028,6 +1028,9 @@ attribute-sets:
-
name: input_xfrm
type: u32
-
name: start-context
type: u32
-
name: plca
attributes:
@@ -1766,6 +1769,7 @@ operations:
request:
attributes:
- header
- start-context
reply: *rss-reply
-
name: plca-get-cfg