netlink: specs: define ethtool header flags
When interfacing with the ethtool commands it's handy to be able to use the names of the flags. Example: ethnl.pause_get({"header": {"dev-index": cfg.ifindex, "flags": {'stats'}}}) Note that not all commands accept all the flags, but the meaning of the bits does not change command to command. Reviewed-by: Petr Machata <petrm@nvidia.com> Link: https://lore.kernel.org/r/20240403023426.1762996-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
1dee310c26
commit
1d056bf9a4
@ -16,6 +16,11 @@ definitions:
|
|||||||
name: stringset
|
name: stringset
|
||||||
type: enum
|
type: enum
|
||||||
entries: []
|
entries: []
|
||||||
|
-
|
||||||
|
name: header-flags
|
||||||
|
enum-name:
|
||||||
|
type: flags
|
||||||
|
entries: [ compact-bitsets, omit-reply, stats ]
|
||||||
|
|
||||||
attribute-sets:
|
attribute-sets:
|
||||||
-
|
-
|
||||||
@ -30,6 +35,7 @@ attribute-sets:
|
|||||||
-
|
-
|
||||||
name: flags
|
name: flags
|
||||||
type: u32
|
type: u32
|
||||||
|
enum: header-flags
|
||||||
|
|
||||||
-
|
-
|
||||||
name: bitset-bit
|
name: bitset-bit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user