summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/microsoft
diff options
context:
space:
mode:
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>2022-11-08 12:57:54 +0900
committerJakub Kicinski <kuba@kernel.org>2022-11-10 09:01:58 -0800
commitedaf5df22cb8e7e849773ce69fcc9bc20ca92160 (patch)
tree1b155902e1ced5728fe26fa9e04d1e4c0ac1a361 /drivers/net/ethernet/microsoft
parent0c9ef08a4d0fd6c5e6000597b506235d71a85a61 (diff)
downloadlinux-stable-edaf5df22cb8e7e849773ce69fcc9bc20ca92160.tar.gz
linux-stable-edaf5df22cb8e7e849773ce69fcc9bc20ca92160.tar.bz2
linux-stable-edaf5df22cb8e7e849773ce69fcc9bc20ca92160.zip
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 <mailhol.vincent@wanadoo.fr> Link: https://lore.kernel.org/r/20221108035754.2143-1-mailhol.vincent@wanadoo.fr Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/microsoft')
0 files changed, 0 insertions, 0 deletions