]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
devlink: add 'disk' to 'fw_load_policy' string validation
authorLouis Peens <louis.peens@netronome.com>
Fri, 19 Jun 2020 11:50:07 +0000 (13:50 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 6 Jul 2020 18:14:57 +0000 (11:14 -0700)
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>
devlink/devlink.c

index 66e139abfb53b491d54c5db543340df236cd8cd2..7f83fb746fd694c56dc46f7ad5d20789e5c47356 100644 (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",