History

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.

Dirk van der Merwe committed 7 years ago

Commit 64f658d1 parent c1b3ddf1 file · +1 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/devlink.h+1−0
@@ -203,6 +203,7 @@ enum devlink_param_fw_load_policy_value { · 202 unmodified lines
203 DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER,203 DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER,
204 DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH,204 DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH,
205 DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK,205 DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK,
206 DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_UNKNOWN,
206};207};
207 208
208enum devlink_param_reset_dev_on_drv_probe_value {209enum devlink_param_reset_dev_on_drv_probe_value {