OSDN Git Service

devlink: Constify devlink instance pointer
authorParav Pandit <parav@mellanox.com>
Tue, 21 Jul 2020 16:53:54 +0000 (19:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 23:14:58 +0000 (16:14 -0700)
commiteac5f8a95ae39dd94af818f0f9fad5d46207ee33
tree1420ff4aef977d292eafab0e9b856b6dde6bd159
parent336ce1c93293e1e606fbc557587b1a1f8630cd5c
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>
net/core/devlink.c