net/mlx5: Add support for fw live patch event
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 7 Oct 2020 06:00:55 +0000 (09:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 19:06:53 +0000 (12:06 -0700)
commit2d69356752ff862dbb0c7e6725874740799d7708
tree25f6fe0bdb5ff324da73bfeca345f415dfc7bf04
parentb4f7cbb3671b9a2ea3c3315f4f5e18539881cd0c
net/mlx5: Add support for fw live patch event

Firmware live patch event notifies the driver that the firmware was just
updated using live patch. In such case the driver should not reload or
re-initiate entities, part to updating the firmware version and
re-initiate the firmware tracer which can be updated by live patch with
new strings database to help debugging an issue.

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/diag/fw_tracer.c
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c
include/linux/mlx5/device.h