Skip to content

Commit 64f658d

Browse files
Dirk van der Merwedavem330
authored andcommitted
devlink: add unknown 'fw_load_policy' value
Similar to the 'reset_dev_on_drv_probe' devlink parameter, it is useful to have an unknown value which can be used by drivers to report that the hardware value isn't recognized or is otherwise invalid instead of failing the operation. This is especially useful for u8/enum parameters. 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 c1b3ddf commit 64f658d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/uapi/linux/devlink.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ enum devlink_param_fw_load_policy_value {
203203
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER,
204204
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH,
205205
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK,
206+
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_UNKNOWN,
206207
};
207208

208209
enum devlink_param_reset_dev_on_drv_probe_value {

0 commit comments

Comments
 (0)