mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-02 17:15:51 +00:00
devlink: add 'reset_dev_on_drv_probe' devlink param
Add support for the new devlink parameter along with string to uint conversion. Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
parent
1157a6fc36
commit
c240e6748e
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user