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)
commit846e980a87fc30075517d6d979548294d5461bdb
tree26042e6262a9143356a3410edcd52a1caf6cf128
parent6915bf3b002bba76cbbb928a983795fdd93af49b
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