]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b2ccac924b17fac780b89acc918eaa502ab9bcf
treef54e257fa2f726d663048d1f7c034a75e2cc97c0
parent9da8839f578f5d8ae6a6e60878a90c5622952cfb
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: 25786ace3fea ("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