From 623147bfdaf55ea14569209d14d429d675f56a5f Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 8 Oct 2024 23:51:28 +0200 Subject: armada: fix tx queue init Type: fix Fixes: 4e51841 Change-Id: Ife3cb43f54cc0700c469f89b0a5af0ff44143807 Signed-off-by: Damjan Marion --- src/plugins/dev_armada/pp2/port.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins') 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++; } -- cgit 1.2.3-korg