Commit 9b648bb1 authored by Arthur Kiyanovski's avatar Arthur Kiyanovski Committed by Jakub Kicinski

net: ena: Add debug prints for invalid req_id resets

Add qid and req_id to error prints when ENA_REGS_RESET_INV_TX_REQ_ID
reset occurs.

Switch from %hu to %u, since u16 should be printed with %u, as
explained in [1].

[1] - https://www.kernel.org/doc/html/latest/core-api/printk-formats.htmlSigned-off-by: default avatarArthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c215941a
...@@ -1269,14 +1269,14 @@ static int handle_invalid_req_id(struct ena_ring *ring, u16 req_id, ...@@ -1269,14 +1269,14 @@ static int handle_invalid_req_id(struct ena_ring *ring, u16 req_id,
netif_err(ring->adapter, netif_err(ring->adapter,
tx_done, tx_done,
ring->netdev, ring->netdev,
"tx_info doesn't have valid %s", "tx_info doesn't have valid %s. qid %u req_id %u",
is_xdp ? "xdp frame" : "skb"); is_xdp ? "xdp frame" : "skb", ring->qid, req_id);
else else
netif_err(ring->adapter, netif_err(ring->adapter,
tx_done, tx_done,
ring->netdev, ring->netdev,
"Invalid req_id: %hu\n", "Invalid req_id %u in qid %u\n",
req_id); req_id, ring->qid);
ena_increase_stat(&ring->tx_stats.bad_req_id, 1, &ring->syncp); ena_increase_stat(&ring->tx_stats.bad_req_id, 1, &ring->syncp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment