From: Louis Peens Date: Fri, 19 Jun 2020 11:50:07 +0000 (+0200) Subject: devlink: add 'disk' to 'fw_load_policy' string validation X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=7c8d7848c7d24707d39a408a8b9c46094e7ff300;p=mirror_iproute2.git 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 Reviewed-by: Simon Horman Signed-off-by: Stephen Hemminger --- diff --git a/devlink/devlink.c b/devlink/devlink.c index 66e139ab..7f83fb74 100644 --- a/devlink/devlink.c +++ b/devlink/devlink.c @@ -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",