]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix dump_command mailbox length printed
authorMoshe Shemesh <moshe@mellanox.com>
Sun, 8 Apr 2018 11:16:48 +0000 (14:16 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 4 May 2018 19:11:51 +0000 (12:11 -0700)
commitdf6a86075f26d7c8bcf28a9cab23ca8b028332ce
tree5a4e4d551917f4971cfa38fcbfdc52bd4fdf2209
parentf83893744bee5b9656c3048f70a385a006b3f3b6
net/mlx5: Fix dump_command mailbox length printed

Dump command mailbox length printed was correct only if data_only flag
was set. For the case that data_only flag was clear the offset to stop
printing at was wrong and so the buffer printed was too short.
Changed the print loop to stop according to number of buffers in
mailbox.

Fixes: 7c120481afcc ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c