aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
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++;
}