summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/devlink.h
diff options
context:
space:
mode:
authorShalom Toledo2018-12-03 08:58:59 +0100
committerDavid S. Miller2018-12-03 22:55:43 +0100
commit846e980a87fc30075517d6d979548294d5461bdb (patch)
tree26042e6262a9143356a3410edcd52a1caf6cf128 /include/uapi/linux/devlink.h
parentnet: phy: don't allow __set_phy_supported to add unsupported modes (diff)
downloadkernel-qcow2-linux-846e980a87fc30075517d6d979548294d5461bdb.tar.gz
kernel-qcow2-linux-846e980a87fc30075517d6d979548294d5461bdb.tar.xz
kernel-qcow2-linux-846e980a87fc30075517d6d979548294d5461bdb.zip
devlink: Add 'fw_load_policy' generic parameter
Many drivers load the device's firmware image during the initialization flow either from the flash or from the disk. Currently this option is not controlled by the user and the driver decides from where to load the firmware image. 'fw_load_policy' gives the ability to control this option which allows the user to choose between different loading policies supported by the driver. This parameter can be useful while testing and/or debugging the device. For example, testing a firmware bug fix. Signed-off-by: Shalom Toledo <shalomt@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/devlink.h')
-rw-r--r--include/uapi/linux/devlink.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 79407bbd296d..6e52d3660654 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -163,6 +163,11 @@ enum devlink_param_cmode {
DEVLINK_PARAM_CMODE_MAX = __DEVLINK_PARAM_CMODE_MAX - 1
};
+enum devlink_param_fw_load_policy_value {
+ DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER,
+ DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH,
+};
+
enum devlink_attr {
/* don't change the order or add anything between, this is ABI! */
DEVLINK_ATTR_UNSPEC,