mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Use correct queue counts
This commit is contained in:
parent
a501f33c09
commit
3737d85206
@ -190,7 +190,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
printf("RX queue info\n");
|
||||
printf(" Queue Base Address E LS CPL Head Tail Len\n");
|
||||
for (int k = 0; k < dev_interface->tx_queue_count; k++)
|
||||
for (int k = 0; k < dev_interface->rx_queue_count; k++)
|
||||
{
|
||||
volatile uint8_t *base = dev_interface->regs+dev_interface->rx_queue_offset+k*MQNIC_QUEUE_STRIDE;
|
||||
|
||||
@ -207,7 +207,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
printf("RX completion queue info\n");
|
||||
printf(" Queue Base Address E LS A C Int Head Tail Len\n");
|
||||
for (int k = 0; k < dev_interface->tx_queue_count; k++)
|
||||
for (int k = 0; k < dev_interface->rx_queue_count; k++)
|
||||
{
|
||||
volatile uint8_t *base = dev_interface->regs+dev_interface->rx_cpl_queue_offset+k*MQNIC_CPL_QUEUE_STRIDE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user