Skip to content

add a new API to report report feature states #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

ffromani
Copy link
Contributor

@ffromani ffromani commented May 11, 2022

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:

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.

Closes: #50
Signed-off-by: Francesco Romani fromani@redhat.com

@ffromani
Copy link
Contributor Author

ping?

@safchain
Copy link
Owner

LGTM, could you rebase it.

@ffromani
Copy link
Contributor Author

LGTM, could you rebase it.

on it, thanks!

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 <fromani@redhat.com>
@ffromani ffromani force-pushed the features-with-state branch from 265375d to 10f3ba2 Compare June 10, 2024 11:59
@ffromani
Copy link
Contributor Author

rebased, tests pass locally

@safchain
Copy link
Owner

Thanks a lot

@safchain safchain merged commit 61f6ccf into safchain:master Jun 11, 2024
@ffromani ffromani deleted the features-with-state branch June 11, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support for feature availability and requested
2 participants