From: oyj <13212850762@163.com>
To: dev@dpdk.org
Cc: Gavin Li <gavinl@nvidia.com>
Subject: [PATCH 1/2] net/mlx5/hws: log syndrome and info on CQE error
Date: Mon, 28 Oct 2024 13:56:34 +0000 [thread overview]
Message-ID: <1730123794-133139-1-git-send-email-13212850762@163.com> (raw)
From: Gavin Li <gavinl@nvidia.com>
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>
---
drivers/net/mlx5/hws/mlx5dr_send.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/hws/mlx5dr_send.c b/drivers/net/mlx5/hws/mlx5dr_send.c
index 3022c50260..e9abf3dddb 100644
--- a/drivers/net/mlx5/hws/mlx5dr_send.c
+++ b/drivers/net/mlx5/hws/mlx5dr_send.c
@@ -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();
--
2.27.0
reply other threads:[~2024-10-28 15:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1730123794-133139-1-git-send-email-13212850762@163.com \
--to=13212850762@163.com \
--cc=dev@dpdk.org \
--cc=gavinl@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).