-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a new API to report report feature states
When inspecting features, the current API reports only if each feature is active. Client applications, especially those consuming the output of `ethtool -k [iface]` also want to know if a feature can actually be enabled or not. Examples: - https://github.com/jaypipes/ghw/blob/main/README.md#network -https://github.com/jaypipes/ghw/blob/main/pkg/net/net_linux.go#L161 This information is already available but is not exposed to the API. So, add a new API to export all the flags. We add a new API instead of changing the existing one to avoid breaking the backward compatibility. Signed-off-by: Francesco Romani <[email protected]>
- Loading branch information
Showing
2 changed files
with
89 additions
and
0 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