]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Add 'fw_load_policy' generic parameter
authorShalom Toledo <shalomt@mellanox.com>
Mon, 3 Dec 2018 07:58:59 +0000 (07:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2018 21:55:43 +0000 (13:55 -0800)
commit80ea2b9c35f1cf07d0522c317b9734942470d3b0
tree26042e6262a9143356a3410edcd52a1caf6cf128
parent404fa8e3165e377386351fe8e87705cd660c4164
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>
Documentation/networking/devlink-params.txt
include/net/devlink.h
include/uapi/linux/devlink.h
net/core/devlink.c