aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorVincent Mailhol <[email protected]>2022-11-08 12:57:54 +0900
committerJakub Kicinski <[email protected]>2022-11-10 09:01:58 -0800
commitedaf5df22cb8e7e849773ce69fcc9bc20ca92160 (patch)
tree1b155902e1ced5728fe26fa9e04d1e4c0ac1a361 /tools/perf/scripts/python/export-to-sqlite.py
parent0c9ef08a4d0fd6c5e6000597b506235d71a85a61 (diff)
ethtool: ethtool_get_drvinfo: populate drvinfo fields even if callback exits
If ethtool_ops::get_drvinfo() callback isn't set, ethtool_get_drvinfo() will fill the ethtool_drvinfo::name and ethtool_drvinfo::bus_info fields. However, if the driver provides the callback function, those two fields are not touched. This means that the driver has to fill these itself. Allow the driver to leave those two fields empty and populate them in such case. This way, the driver can rely on the default values for the name and the bus_info. If the driver provides values, do nothing. Signed-off-by: Vincent Mailhol <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions