summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2020-07-21 18:53:54 +0200
committerDavid S. Miller <davem@davemloft.net>2020-07-22 01:14:58 +0200
commiteac5f8a95ae39dd94af818f0f9fad5d46207ee33 (patch)
tree1420ff4aef977d292eafab0e9b856b6dde6bd159 /net/core
parentdevlink: Add comment for devlink instance lock (diff)
downloadlinux-eac5f8a95ae39dd94af818f0f9fad5d46207ee33.tar.xz
linux-eac5f8a95ae39dd94af818f0f9fad5d46207ee33.zip
devlink: Constify devlink instance pointer
Constify devlink instance pointer while checking if reload operation is supported or not. This helps to review the scope of checks done in reload. Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/devlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c
index 5c74e67f358c..8b7bb4bfb6d0 100644
--- a/net/core/devlink.c
+++ b/net/core/devlink.c
@@ -2921,7 +2921,7 @@ static void devlink_reload_netns_change(struct devlink *devlink,
DEVLINK_CMD_PARAM_NEW);
}
-static bool devlink_reload_supported(struct devlink *devlink)
+static bool devlink_reload_supported(const struct devlink *devlink)
{
return devlink->ops->reload_down && devlink->ops->reload_up;
}