-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JSON output support for Netlink implementation of --show-ring option
Add --json support for Netlink implementation of --show-ring option No changes for non-JSON output for this featire. Example output without --json: [ethtool-git]$ /ethtool -g enp9s0u2u1u2 Ring parameters for enp9s0u2u1u2: Pre-set maximums: RX: 4096 RX Mini: n/a RX Jumbo: n/a TX: n/a Current hardware settings: RX: 100 RX Mini: n/a RX Jumbo: n/a TX: n/a RX Buf Len: n/a CQE Size: n/a TX Push: off TCP data split: n/a Same output with --json: [ethtool-git]$ ./ethtool --json -g enp9s0u2u1u2 [ { "ifname": "enp9s0u2u1u2", "rx-max": 4096, "rx": 100, "tx-push": false } ] Suggested-by: Jakub Kicinski <[email protected]> Signed-off-by: Maxim Georgiev <[email protected]>
- Loading branch information
1 parent
bd67f80
commit af0b9d9
Showing
2 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters