devlink: Add support for get/set driverinit value
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 4 Jul 2018 11:30:31 +0000 (14:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 10:58:35 +0000 (19:58 +0900)
commitec01aeb1803eaaf0d006e7b07b5ddb5e429c38a4
tree7f550116810f1142397a6928b61e88797958d28b
parente3b7ca18ad7b2f47ebd3b6e6ce58a42c6ec24746
devlink: Add support for get/set driverinit value

"driverinit" configuration mode value is held by devlink to enable
the driver query the value after reload. Two additional functions
added to help the driver get/set the value from/to devlink:
devlink_param_driverinit_value_set() and
devlink_param_driverinit_value_get().

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c