Skip to content

Commit 44798ec

Browse files
Dirk van der Merwedavem330
authored andcommitted
nfp: devlink: set unknown fw_load_policy
If the 'app_fw_from_flash' HWinfo key is invalid, set the 'fw_load_policy' devlink parameter value to unknown. Suggested-by: Jakub Kicinski <[email protected]> Signed-off-by: Dirk van der Merwe <[email protected]> Signed-off-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 64f658d commit 44798ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/netronome/nfp/devlink_param.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ static const struct nfp_devlink_param_u8_arg nfp_devlink_u8_args[] = {
3232
[DEVLINK_PARAM_GENERIC_ID_FW_LOAD_POLICY] = {
3333
.hwinfo_name = "app_fw_from_flash",
3434
.default_hi_val = NFP_NSP_APP_FW_LOAD_DEFAULT,
35-
.invalid_dl_val = -EINVAL,
35+
.invalid_dl_val =
36+
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_UNKNOWN,
3637
.hi_to_dl = {
3738
[NFP_NSP_APP_FW_LOAD_DISK] =
3839
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK,

0 commit comments

Comments
 (0)