tools: ynl: ethtool.py: Make tool invokable from any CWD
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Tue, 2 Apr 2024 20:39:52 +0000 (13:39 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Apr 2024 02:34:08 +0000 (19:34 -0700)
commitca3e10c4d83ad6bb611d07857aade7078c87ad99
tree44ec0869d01a3ef668586259b1ab86a300ba9c65
parenta9e4230d0b2202bf1f7dc7b80e034fb1a6df4f67
tools: ynl: ethtool.py: Make tool invokable from any CWD

ethtool.py depends on yml files in a specific location of the linux kernel
tree. Using relative lookup for those files means that ethtool.py would
need to be run under tools/net/ynl/. Lookup needed yml files without
depending on the current working directory that ethtool.py is invoked from.

Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Link: https://lore.kernel.org/r/20240402204000.115081-1-rrameshbabu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ethtool.py