nfp: devlink: add 'fw_load_policy' support
authorDirk van der Merwe <dirk.vandermerwe@netronome.com>
Sun, 8 Sep 2019 23:54:24 +0000 (00:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Sep 2019 16:29:27 +0000 (17:29 +0100)
commitff04788c5b583d79c5c15e28c4ae7b876e69d00c
tree9e05d76bcf6b6602a9add6653ee56894a434ba90
parent165c3c9f8c3b860b8f179479bfb8eee6bec2beb2
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>
Documentation/networking/devlink-params-nfp.txt [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/devlink_param.c