[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200721165354.5244-5-parav@mellanox.com>
Date: Tue, 21 Jul 2020 19:53:54 +0300
From: Parav Pandit <parav@...lanox.com>
To: netdev@...r.kernel.org, kuba@...nel.org, davem@...emloft.net
Cc: jiri@...lanox.com, Parav Pandit <parav@...lanox.com>
Subject: [PATCH net-next 4/4] 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@...lanox.com>
Reviewed-by: Jiri Pirko <jiri@...lanox.com>
---
net/core/devlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
2.25.4
Powered by blists - more mailing lists