]> 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)
commit3751b5496e9f3f94384bfded9e75a416f7cb11d2
tree26042e6262a9143356a3410edcd52a1caf6cf128
parentff123bbff3cb33c2538a2d44f9ea39d3eed01b6d
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