From fe403bd50425d6eba3f1edd88107ff8fef310aff Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 24 Oct 2024 11:40:13 +0200 Subject: [PATCH] armada: fix rxq buffer pool assignment Type: fix Change-Id: I5a78804986f400f8adc7f58f25fe5d7989a926ea Signed-off-by: Damjan Marion --- src/plugins/dev_armada/pp2/port.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/dev_armada/pp2/port.c b/src/plugins/dev_armada/pp2/port.c index 4dbea1f8e67..29594f2a84d 100644 --- a/src/plugins/dev_armada/pp2/port.c +++ b/src/plugins/dev_armada/pp2/port.c @@ -23,6 +23,7 @@ mvpp2_port_init (vlib_main_t *vm, vnet_dev_port_t *port) mvpp2_device_t *md = vnet_dev_get_data (dev); mvpp2_port_t *mp = vnet_dev_get_port_data (port); vnet_dev_rv_t rv = VNET_DEV_OK; + vnet_dev_rx_queue_t *rxq0 = vnet_dev_get_port_rx_queue_by_id (port, 0); struct pp2_ppio_link_info li; char match[16]; int mrv; @@ -40,8 +41,8 @@ mvpp2_port_init (vlib_main_t *vm, vnet_dev_port_t *port) .tcs_params[0] = { .pkt_offset = 0, .num_in_qs = 1, - .inqs_params = &(struct pp2_ppio_inq_params) { .size = 512 }, - .pools[0][0] = md->thread[0].bpool, + .inqs_params = &(struct pp2_ppio_inq_params) { .size = rxq0->size }, + .pools[0][0] = md->thread[rxq0->rx_thread_index].bpool, }, }, };