-
Notifications
You must be signed in to change notification settings - Fork 19
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
Make drivers.yaml
file optional
#35
Conversation
Change the path to the `drivers.yaml` from a constant to a user-definable parameter `path.supported-drivers-version-db`. If the user does not specify any value for the file path, then every ethernet driver is considered good to use. Signed-off-by: Andrea Panattoni <[email protected]>
341f74b
to
9f558ab
Compare
Should we assume every driver is considered good to use? if a user used an out of date driver, i.e. not supported - it would just fail? wdyt? |
That's a good question. If the
The problem with the supported driver map is that an in-tree driver inherits the version from the kernel. So it's not trivial to prepare a good |
right - but if we are assuming that if a yaml is not provided, then return empty and assume all are correct, this will be the default configuration for everyone so there' not much point in checking it then..... it's a catch 22, if you default it to some values, then folks will hit it and have to either set the values to empty and overwrite, or else explicitly set the values based on their env.......... I am not sure which approach I like better.... maybe don't check the version - and call out a minimum (we do this) in the README |
I will vote to remove this file as I don't think it really works for in-tree drivers. for example, we have 1.9 version in the file for ICE driver but for example, in RHEL all the driver versions are based on the kernel. For example "4.18.0-513.18.1.el8_9.x86_64" will be marked as a "good" version but we don't really know if that driver is newer or older than the u/s 1.9 version requested in the file |
@zeeke any progress on this? |
Sorry, I wasn't sure I got the plan here. Can you confirm this: is that right? |
my understanding is that we will remove the drivers.yaml file, remove the I think if netlink fails, then we can fall back on sysfs collector, etc. |
sounds very good to me. Going to provide changes |
closing this one in favor of #37 |
Change the path to the
drivers.yaml
from a constant to a user-definable parameterpath.supported-drivers-version-db
. If the user does not specify any value for the file path, then every ethernet driver is considered good to use.@SchSeba @Eoghan1232 please take a look