]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Add enable_remote_dev_reset generic parameter
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 7 Oct 2020 06:00:53 +0000 (09:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 19:06:53 +0000 (12:06 -0700)
commitd9719baa3fdc6561c3632198914265a944af8cf8
tree4bdf594dd64e1804cab6936a7d29b85960643078
parent49fe18e0e3df51109aa1f315ab9c290cf9368001
devlink: Add enable_remote_dev_reset generic parameter

The enable_remote_dev_reset devlink param flags that the host admin
allows device resets that can be initiated by other hosts. This
parameter is useful for setups where a device is shared by different
hosts, such as multi-host setup. Once the user set this parameter to
false, the driver should NACK any attempt to reset the device while the
driver is loaded.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/devlink/devlink-params.rst
include/net/devlink.h
net/core/devlink.c