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)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 18 Oct 2019 19:11:54 +0000 (12:11 -0700)
commit61ea02d2c13106116c6e4916ac5d9dd41151c959
treef54e257fa2f726d663048d1f7c034a75e2cc97c0
parent46a3ea98074e2a7731ab9b84ec60fc18a2f909e5
net/mlx5e: TX, Fix consumer index of error cqe dump

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>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c