Skip to content

Commit 9c93534

Browse files
GavinLi-NVraslandarawsheh
authored andcommitted
net/mlx5/hws: print CQE error syndrome and more information
Print CQE error syndrome and more information in case of queue error. Signed-off-by: Gavin Li <[email protected]> Acked-by: Alex Vesker <[email protected]>
1 parent 6610ce3 commit 9c93534

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

drivers/net/mlx5/hws/mlx5dr_send.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,15 @@ static void mlx5dr_send_engine_poll_cq(struct mlx5dr_send_engine *queue,
598598
cqe_owner != sw_own)
599599
return;
600600

601-
if (unlikely(cqe_opcode != MLX5_CQE_REQ))
601+
if (unlikely(cqe_opcode != MLX5_CQE_REQ)) {
602+
struct mlx5_err_cqe *err_cqe = (struct mlx5_err_cqe *)cqe;
603+
604+
DR_LOG(ERR, "CQE ERR:0x%x, Vendor_ERR:0x%x, OP:0x%x, QPN:0x%x, WQE_CNT:0x%x",
605+
err_cqe->syndrome, err_cqe->vendor_err_synd, cqe_opcode,
606+
(rte_be_to_cpu_32(err_cqe->s_wqe_opcode_qpn) & 0xffffff),
607+
rte_be_to_cpu_16(err_cqe->wqe_counter));
602608
queue->err = true;
609+
}
603610

604611
rte_io_rmb();
605612

0 commit comments

Comments
 (0)