devlink: add 'reset_dev_on_drv_probe' devlink param
Subsystems (2)
PATCH 1/1 devlink: add 'reset_dev_on_drv_probe' devlink param
From: Dirk van der Merwe <[email protected]>
Add support for the new devlink parameter along with string to uint conversion.
Signed-off-by Dirk van der Merwe <[email protected]>
Signed-off-by Simon Horman <[email protected]>
---
Depends on devlink.h changes present in net-next commit 5bbd21df5a07 ("devlink: add 'reset_dev_on_drv_probe' param")
--- devlink/devlink.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
devlink/devlink.c +20 -0
@@ -2253,6 +2253,26 @@ static const struct param_val_conv param_val_conv[] = { .vstr = "flash", .vuint = DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH, }, + { + .name = "reset_dev_on_drv_probe", + .vstr = "unknown", + .vuint = DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_UNKNOWN, + }, + { + .name = "reset_dev_on_drv_probe", + .vstr = "always", + .vuint = DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_ALWAYS, + }, + { + .name = "reset_dev_on_drv_probe", + .vstr = "never", + .vuint = DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_NEVER, + }, + { + .name = "reset_dev_on_drv_probe", + .vstr = "disk", + .vuint = DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_DISK, + }, }; #define PARAM_VAL_CONV_LEN ARRAY_SIZE(param_val_conv)
Signature · 1 line
2.11.0
David Ahern
AppliedQuoted 5 lines · Simon Horman
From: Dirk van der Merwe <[email protected]>
Add support for the new devlink parameter along with string to uint conversion.
Quoted 9 lines
Signed-off-by Dirk van der Merwe <[email protected]>Signed-off-by Simon Horman <[email protected]>---
Depends ondevlink.hchanges present in net-next commit5bbd21df5a07("devlink: add 'reset_dev_on_drv_probe' param")--- devlink/devlink.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
applied to iproute2-next. Thanks