]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Change devlink_reload_supported() param type
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 7 Oct 2020 06:00:42 +0000 (09:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 19:06:52 +0000 (12:06 -0700)
commit9cb76af480248897a30b6ff4ddf1a534aa133326
tree480f150fc18d271327fcbacd8224b96d6def4c4f
parent6142c454843ef5973a3344cc2242a9cd13fd64dd
devlink: Change devlink_reload_supported() param type

Change devlink_reload_supported() function to get devlink_ops pointer
param instead of devlink pointer param.
This change will be used in the next patch to check if devlink reload is
supported before devlink instance is allocated.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devlink.c