OSDN Git Service

devlink: Fix param cmode driverinit for string type
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 10 Oct 2018 13:09:26 +0000 (16:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Oct 2018 17:19:10 +0000 (10:19 -0700)
commit1276534c988ba752fa01bf090412a877ee783829
tree71529afbcdbde106a29533dca5f8fcd0d4914059
parentf355cfcdb251e22b9dfb78c0eef4005a9d902a35
devlink: Fix param cmode driverinit for string type

Driverinit configuration mode value is held by devlink to enable the
driver fetch the value after reload command. In case the param type is
string devlink should copy the value from driver string buffer to
devlink string buffer on devlink_param_driverinit_value_set() and
vice-versa on devlink_param_driverinit_value_get().

Fixes: ec01aeb1803e ("devlink: Add support for get/set driverinit value")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c