[net-next,1/2] devlink: add unknown 'fw_load_policy' value
diff mbox series

Message ID 20190911110833.9005-2-simon.horman@netronome.com
State Accepted
Delegated to: David Miller
Headers show
  • devlink: add unknown 'fw_load_policy' value
Related show

Commit Message

Simon Horman Sept. 11, 2019, 11:08 a.m. UTC
From: Dirk van der Merwe <dirk.vandermerwe@netronome.com>

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 <jakub.kicinski@netronome.com>
Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
 include/uapi/linux/devlink.h | 1 +
 1 file changed, 1 insertion(+)

diff mbox series

diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 1da3e83f1fd4..8da5365850cd 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -203,6 +203,7 @@  enum devlink_param_fw_load_policy_value {
 enum devlink_param_reset_dev_on_drv_probe_value {