net/mlx5: Add support for devlink reload limit no reset
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 7 Oct 2020 06:00:56 +0000 (09:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 19:06:53 +0000 (12:06 -0700)
commitbef878e865ea8a4e08d5b5d4ef56df681ff1d6b3
tree092d39229ee727f25bcfc52621cd10cfde7db0ce
parent2d69356752ff862dbb0c7e6725874740799d7708
net/mlx5: Add support for devlink reload limit no reset

Add support for devlink reload action fw_activate with reload limit
no_reset which does firmware live patching, updating the firmware image
without reset, no downtime and no configuration lose. The driver checks
if the firmware is capable of handling the pending firmware changes as a
live patch. If it is then it triggers firmware live patching flow.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c