net/mlx5e: TX, Fix consumer index of error cqe dump
authorTariq Toukan <tariqt@mellanox.com>
Tue, 24 Sep 2019 08:29:09 +0000 (11:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Nov 2019 18:20:56 +0000 (19:20 +0100)
commit7dfdcd9407f30ea86acb3b43fcfd3a92ce6a41fa
treee317dcca9136b3fc733d347865f069062c0d018c
parent48dd71289ca3594002910c24f26cc37c46a5dd44
net/mlx5e: TX, Fix consumer index of error cqe dump

[ Upstream commit 61ea02d2c13106116c6e4916ac5d9dd41151c959 ]

The completion queue consumer index increments upon a call to
mlx5_cqwq_pop().
When dumping an error CQE, the index is already incremented.
Decrease one for the print command.

Fixes: 16cc14d81733 ("net/mlx5e: Dump xmit error completions")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c