nfp: devlink: add 'fw_load_policy' support

Add support for the 'fw_load_policy' devlink parameter. The FW load
policy is controlled by the 'app_fw_from_flash' hwinfo key.

Remap the values from devlink to the hwinfo key and back.

Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Dirk van der Merwe
2019-09-09 00:54:24 +01:00
committed by David S. Miller
parent 165c3c9f8c
commit ff04788c5b
2 changed files with 167 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
fw_load_policy [DEVICE, GENERIC]
Configuration mode: permanent