From 149ba779cff4ffc48d87ca67a2a8d4afd49b05f5 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 12 Oct 2017 13:09:26 +0200 Subject: vlib: add support for multiple buffer pools Change-Id: Icaf7d7ad47284aea7a56e8006b69f45874d64202 Signed-off-by: Damjan Marion --- src/plugins/dpdk/device/node.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/dpdk/device/node.c') diff --git a/src/plugins/dpdk/device/node.c b/src/plugins/dpdk/device/node.c index cf8b9699206..82978216817 100644 --- a/src/plugins/dpdk/device/node.c +++ b/src/plugins/dpdk/device/node.c @@ -347,6 +347,9 @@ dpdk_device_input (dpdk_main_t * dm, dpdk_device_t * xd, /* Update buffer template */ vnet_buffer (bt)->sw_if_index[VLIB_RX] = xd->vlib_sw_if_index; bt->error = node->errors[DPDK_ERROR_NONE]; + /* as DPDK is allocating empty buffers from mempool provided before interface + start for each queue, it is safe to store this in the template */ + bt->buffer_pool_index = xd->buffer_pool_for_queue[queue_id]; mb_index = 0; -- cgit 1.2.3-korg