Configured mini CQE compression format was logged on CQ creation,
but not the actually used one. This patch adds logging of both.
Also Rx queue index is added to the log.

Fixes: 54c2d46b160f ("net/mlx5: support flow tag and packet header miniCQEs")
Cc: [email protected]

Signed-off-by: Dariusz Sosnowski <[email protected]>
Acked-by: Viacheslav Ovsiienko <[email protected]>
---
 drivers/net/mlx5/mlx5_devx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/mlx5/mlx5_devx.c b/drivers/net/mlx5/mlx5_devx.c
index 4b30a4fade..374d15a07c 100644
--- a/drivers/net/mlx5/mlx5_devx.c
+++ b/drivers/net/mlx5/mlx5_devx.c
@@ -478,8 +478,8 @@ mlx5_rxq_create_devx_cq_resources(struct mlx5_rxq_priv *rxq)
                        break;
                }
                DRV_LOG(DEBUG,
-                       "Port %u Rx CQE compression is enabled, format %d.",
-                       port_id, priv->config.cqe_comp_fmt);
+                       "Port %u Rx queue %u CQE compression is enabled, format 
%u (configured %u)",
+                       port_id, rxq->idx, rxq_data->mcqe_format, 
priv->config.cqe_comp_fmt);
                /*
                 * For vectorized Rx, it must not be doubled in order to
                 * make cq_ci and rq_ci aligned.
--
2.43.0

Reply via email to