Skip to content

add a new API to report report feature states#49

Merged
safchain merged 1 commit intosafchain:masterfrom
ffromani:features-with-state
Jun 11, 2024
Merged

add a new API to report report feature states#49
safchain merged 1 commit intosafchain:masterfrom
ffromani:features-with-state

Conversation

@ffromani
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

ping?

@safchain
Copy link
Copy Markdown
Owner

LGTM, could you rebase it.

@ffromani
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

rebased, tests pass locally

@safchain
Copy link
Copy Markdown
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