diff options
author | Damjan Marion <damarion@cisco.com> | 2024-10-24 11:40:13 +0200 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2024-10-24 12:34:38 +0200 |
commit | fe403bd50425d6eba3f1edd88107ff8fef310aff (patch) | |
tree | 8996580bbfeb25a0867f6c0c01e597fc598a6f0a | |
parent | 602d11019bf76e8f4ad73b4b928bbf4ac3becfdc (diff) |
armada: fix rxq buffer pool assignment
Type: fix
Change-Id: I5a78804986f400f8adc7f58f25fe5d7989a926ea
Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r-- | src/plugins/dev_armada/pp2/port.c | 5 |
1 files 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, }, }, }; |