summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>2022-11-29 18:51:39 +0900
committerJakub Kicinski <kuba@kernel.org>2022-11-30 21:49:39 -0800
commitc5cd7c86847cda0fdd44956561c0f3d9adea032b (patch)
tree08acd70c5edfbc6b471b6c61c500cb5a67d2e166 /drivers/net/ethernet
parent226bf980550627c88549b112ac6c8fb40873afb4 (diff)
downloadlinux-c5cd7c86847cda0fdd44956561c0f3d9adea032b.tar.bz2
net: devlink: make the devlink_ops::info_get() callback optional
Some drivers only reported the driver name in their devlink_ops::info_get() callback. Now that the core provides this information, the callback became empty. For such drivers, just removing the callback would prevent the core from executing devlink_nl_info_fill() meaning that "devlink dev info" would not return anything. Make the callback function optional by executing devlink_nl_info_fill() even if devlink_ops::info_get() is NULL. N.B.: the drivers with devlink support which previously did not implement devlink_ops::info_get() will now also be able to report the driver name. Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet')
0 files changed, 0 insertions, 0 deletions