Skip to content

Commit

Permalink
net/mlx5/hws: log syndrome and info on CQE error
Browse files Browse the repository at this point in the history
Print CQE error syndrome and more information in case of queue error.

Signed-off-by: Gavin Li <gavinl@nvidia.com>
Acked-by: Alex Vesker <valex@nvidia.com>
  • Loading branch information
GavinLi-NV authored and raslandarawsheh committed Oct 14, 2024
1 parent 0573a39 commit d9acab1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/net/mlx5/hws/mlx5dr_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,15 @@ static void mlx5dr_send_engine_poll_cq(struct mlx5dr_send_engine *queue,
cqe_owner != sw_own)
return;

if (unlikely(cqe_opcode != MLX5_CQE_REQ))
if (unlikely(cqe_opcode != MLX5_CQE_REQ)) {
struct mlx5_err_cqe *err_cqe = (struct mlx5_err_cqe *)cqe;

DR_LOG(ERR, "CQE ERR:0x%x, Vendor_ERR:0x%x, OP:0x%x, QPN:0x%x, WQE_CNT:0x%x",
err_cqe->syndrome, err_cqe->vendor_err_synd, cqe_opcode,
(rte_be_to_cpu_32(err_cqe->s_wqe_opcode_qpn) & 0xffffff),
rte_be_to_cpu_16(err_cqe->wqe_counter));
queue->err = true;
}

rte_io_rmb();

Expand Down

0 comments on commit d9acab1

Please sign in to comment.