devlink: add 'disk' to 'fw_load_policy' string validation

The 'fw_load_policy' devlink parameter supports the 'disk' value
since kernel v5.4, seems like there was some oversight in adding
this to iproute, fixed by this patch.

Signed-off-by: Louis Peens <louis.peens@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Louis Peens 2020-06-19 13:50:07 +02:00 committed by Stephen Hemminger
parent 2d4c3f65e2
commit 7c8d7848c7

View File

@ -2358,6 +2358,11 @@ static const struct param_val_conv param_val_conv[] = {
.vstr = "flash",
.vuint = DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH,
},
{
.name = "fw_load_policy",
.vstr = "disk",
.vuint = DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK,
},
{
.name = "reset_dev_on_drv_probe",
.vstr = "unknown",