aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2024-10-08 23:51:28 +0200
committerDamjan Marion <damarion@cisco.com>2024-10-08 23:53:45 +0200
commit623147bfdaf55ea14569209d14d429d675f56a5f (patch)
treeaaf5cc19df09086b0990633926a19931300d8489 /src/plugins
parentad6aacc44adce5971f9d679a81d77b6618ba00ba (diff)
armada: fix tx queue init
Type: fix Fixes: 4e51841 Change-Id: Ife3cb43f54cc0700c469f89b0a5af0ff44143807 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dev_armada/pp2/port.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/dev_armada/pp2/port.c b/src/plugins/dev_armada/pp2/port.c
index 8e785e5e0e4..a14e15bf1f2 100644
--- a/src/plugins/dev_armada/pp2/port.c
+++ b/src/plugins/dev_armada/pp2/port.c
@@ -46,11 +46,11 @@ mvpp2_port_init (vlib_main_t *vm, vnet_dev_port_t *port)
},
};
- foreach_vnet_dev_port_rx_queue (q, port)
+ foreach_vnet_dev_port_tx_queue (q, port)
{
struct pp2_ppio_outqs_params *oqs = &ppio_params.outqs_params;
- oqs->outqs_params[0].weight = 1;
- oqs->outqs_params[0].size = q->size;
+ oqs->outqs_params[q->queue_id].weight = 1;
+ oqs->outqs_params[q->queue_id].size = q->size;
oqs->num_outqs++;
}