Commit 4a0ec348 authored by Shannon Nelson's avatar Shannon Nelson Committed by Jakub Kicinski

ionic: debug line for Tx completion errors

Here's a little debugging aid in case the device starts throwing
Tx completion errors.
Signed-off-by: default avatarShannon Nelson <shannon.nelson@amd.com>
Signed-off-by: default avatarBrett Creeley <brett.creeley@amd.com>
Link: https://patch.msgid.link/20240906232623.39651-2-brett.creeley@amd.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 760664b7
......@@ -648,7 +648,14 @@ static void ionic_rx_clean(struct ionic_queue *q,
stats = q_to_rx_stats(q);
if (comp->status) {
if (unlikely(comp->status)) {
/* Most likely status==2 and the pkt received was bigger
* than the buffer available: comp->len will show the
* pkt size received that didn't fit the advertised desc.len
*/
dev_dbg(q->dev, "q%d drop comp->status %d comp->len %d desc->len %d\n",
q->index, comp->status, comp->len, q->rxq[q->head_idx].len);
stats->dropped++;
return;
}
......
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