devlink: extend 'fw_load_policy' values
authorDirk van der Merwe <dirk.vandermerwe@netronome.com>
Sun, 8 Sep 2019 23:54:17 +0000 (00:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Sep 2019 16:29:26 +0000 (17:29 +0100)
Add the 'disk' value to the generic 'fw_load_policy' devlink parameter.
This value indicates that firmware should always be loaded from disk
only.

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.txt
include/uapi/linux/devlink.h

index 2d26434ddcf8a5290c4ef9735c8f8e9e64491114..fadb5436188dd4fec3363947a401beeb614d6cc9 100644 (file)
@@ -48,4 +48,6 @@ fw_load_policy                [DEVICE, GENERIC]
                          Load firmware version preferred by the driver.
                        * DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH (1)
                          Load firmware currently stored in flash.
+                       * DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK (2)
+                         Load firmware currently available on host's disk.
                        Type: u8
index 546e75dd74acaf6971d4a8e24b54deb524549e8d..c25cc29a6647e1ff45ac099286147921b812438d 100644 (file)
@@ -202,6 +202,7 @@ enum devlink_param_cmode {
 enum devlink_param_fw_load_policy_value {
        DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER,
        DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH,
+       DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK,
 };
 
 enum {