summaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_octeon
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2024-03-27 22:53:21 +0100
committerDamjan Marion <dmarion@0xa5.net>2024-04-01 10:49:57 +0000
commit5e814768b8d21fe4812b63a38b88bb1175404ed8 (patch)
tree2284eaed2f5e81fa6ab8f4d815e5f7584afbe48d /src/plugins/dev_octeon
parentcbaa256a141b929ae6ac28dc74e9023e88b88eed (diff)
octeon: specify pool when alloc buffers
Type: fix Fixes: 01fe7ab Change-Id: I72fdaca250468d91a31efcce2fb447c97ba49dc7 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dev_octeon')
-rw-r--r--src/plugins/dev_octeon/rx_node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/dev_octeon/rx_node.c b/src/plugins/dev_octeon/rx_node.c
index 35776c8b714..997f1356199 100644
--- a/src/plugins/dev_octeon/rx_node.c
+++ b/src/plugins/dev_octeon/rx_node.c
@@ -217,7 +217,8 @@ oct_rxq_refill (vlib_main_t *vm, vnet_dev_rx_queue_t *rxq, u16 n_refill)
while (n_lines >= batch_max_lines)
{
- n_alloc = vlib_buffer_alloc (vm, buffer_indices, batch_max_bufs);
+ n_alloc =
+ vlib_buffer_alloc_from_pool (vm, buffer_indices, batch_max_bufs, bpi);
if (PREDICT_FALSE (n_alloc < batch_max_bufs))
goto alloc_fail;
oct_rxq_refill_batch (vm, lmt_id, addr, lines, buffer_indices, w0,