Skip to content

Commit 79bb847

Browse files
aloktiwakuba-moo
authored andcommitted
idpf: correct queue index in Rx allocation error messages
The error messages in idpf_rx_desc_alloc_all() used the group index i when reporting memory allocation failures for individual Rx and Rx buffer queues. This is incorrect. Update the messages to use the correct queue index j and include the queue group index i for clearer identification of the affected Rx and Rx buffer queues. Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Link: https://patch.msgid.link/20251125223632.1857532-10-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent d89a5c2 commit 79bb847

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/net/ethernet/intel/idpf/idpf_txrx.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,8 @@ static int idpf_rx_desc_alloc_all(struct idpf_vport *vport)
922922
err = idpf_rx_desc_alloc(vport, q);
923923
if (err) {
924924
pci_err(vport->adapter->pdev,
925-
"Memory allocation for Rx Queue %u failed\n",
926-
i);
925+
"Memory allocation for Rx queue %u from queue group %u failed\n",
926+
j, i);
927927
goto err_out;
928928
}
929929
}
@@ -939,8 +939,8 @@ static int idpf_rx_desc_alloc_all(struct idpf_vport *vport)
939939
err = idpf_bufq_desc_alloc(vport, q);
940940
if (err) {
941941
pci_err(vport->adapter->pdev,
942-
"Memory allocation for Rx Buffer Queue %u failed\n",
943-
i);
942+
"Memory allocation for Rx Buffer Queue %u from queue group %u failed\n",
943+
j, i);
944944
goto err_out;
945945
}
946946
}

0 commit comments

Comments
 (0)