diff options
author | Moshe Shemesh <moshe@mellanox.com> | 2019-07-14 14:06:40 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-08-22 13:38:47 -0700 |
commit | 8465df4025dd4ab84fc24dad6a91cc2b9ec1604d (patch) | |
tree | c69cfa2453f82b68c639253aafd23860d35caa0e | |
parent | cc07db5a5b100bc8eaab5097a23d72f858979750 (diff) | |
download | linux-stable-8465df4025dd4ab84fc24dad6a91cc2b9ec1604d.tar.gz linux-stable-8465df4025dd4ab84fc24dad6a91cc2b9ec1604d.tar.bz2 linux-stable-8465df4025dd4ab84fc24dad6a91cc2b9ec1604d.zip |
net/mlx5: Fix crdump chunks print
Crdump repeats itself every chunk of 256bytes.
That is due to bug of missing progressing offset while copying the data
from buffer to devlink_fmsg.
Fixes: 9b1f29823605 ("net/mlx5: Add support for FW fatal reporter dump")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/health.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/health.c b/drivers/net/ethernet/mellanox/mlx5/core/health.c index 9314777d99e3..cc5887f52679 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/health.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/health.c @@ -590,7 +590,8 @@ mlx5_fw_fatal_reporter_dump(struct devlink_health_reporter *reporter, data_size = crdump_size - offset; else data_size = MLX5_CR_DUMP_CHUNK_SIZE; - err = devlink_fmsg_binary_put(fmsg, cr_data, data_size); + err = devlink_fmsg_binary_put(fmsg, (char *)cr_data + offset, + data_size); if (err) goto free_data; } |