net/mlx5: fw_tracer, Zero consumer index when reloading the tracer
authorShay Drory <shayd@nvidia.com>
Wed, 25 Jan 2023 15:39:36 +0000 (17:39 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 8 Feb 2023 03:01:06 +0000 (19:01 -0800)
commit184e1e4474dbcfebc4dbd1fa823a329978f25506
tree21bc77a863336d3c06caa078e88d1747994f7a2a
parentdb561fed6b8fa3878e74d5df6512a4a38152b63e
net/mlx5: fw_tracer, Zero consumer index when reloading the tracer

When tracer is reloaded, the device will log the traces at the
beginning of the log buffer. Also, driver is reading the log buffer in
chunks in accordance to the consumer index.
Hence, zero consumer index when reloading the tracer.

Fixes: 4383cfcc65e7 ("net/mlx5: Add devlink reload")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c