From: Dawid Gorecki <d...@semihalf.com>

Add information about port id, queue id and req_id to error logs in
validate_tx_req_id.

Signed-off-by: Dawid Gorecki <d...@semihalf.com>
Reviewed-by: Michal Krawczyk <m...@semihalf.com>
Reviewed-by: Shai Brandes <shaib...@amazon.com>
---
 drivers/net/ena/ena_ethdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index 53a8071968..b471102ea9 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -675,9 +675,11 @@ static int validate_tx_req_id(struct ena_ring *tx_ring, 
u16 req_id)
        }
 
        if (tx_info)
-               PMD_TX_LOG(ERR, "tx_info doesn't have valid mbuf\n");
+               PMD_TX_LOG(ERR, "tx_info doesn't have valid mbuf. queue %d:%d 
req_id %u\n",
+                       tx_ring->port_id, tx_ring->id, req_id);
        else
-               PMD_TX_LOG(ERR, "Invalid req_id: %hu\n", req_id);
+               PMD_TX_LOG(ERR, "Invalid req_id: %hu in queue %d:%d\n",
+                       req_id, tx_ring->port_id, tx_ring->id);
 
        /* Trigger device reset */
        ++tx_ring->tx_stats.bad_req_id;
-- 
2.25.1

Reply via email to