diff options
author | Lukas Stockner <lstockner@genesiscloud.com> | 2024-06-04 16:14:55 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2024-06-05 12:28:27 +0000 |
commit | 63ff7a63250c714048b8f9cf5920a8f5713c2a81 (patch) | |
tree | 8d3112a0864e833c6319f733e04b1e098cda9b43 /src/vlib/buffer.h | |
parent | f4972f9232b45357db6266e07993b967fc87b172 (diff) |
buffers: support per-numa-domain buffer size
Currently, buffers-per-numa is used for all NUMA domains, and there's
no way to allocate different amounts for each domain.
Therefore, this adds a per-NUMA-domain buffer config section, which
currently has a single option to set the number of buffers.
If it's not specified or set to zero, the code falls back to
buffers-per-numa as before.
Type: improvement
Change-Id: If35d7a9eff6f8d1d78063ea7873dbf50780d0ec3
Signed-off-by: Lukas Stockner <lstockner@genesiscloud.com>
Diffstat (limited to 'src/vlib/buffer.h')
-rw-r--r-- | src/vlib/buffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vlib/buffer.h b/src/vlib/buffer.h index 7d45689ed19..aad9701080e 100644 --- a/src/vlib/buffer.h +++ b/src/vlib/buffer.h @@ -508,7 +508,8 @@ typedef struct u8 default_buffer_pool_index_for_numa[VLIB_BUFFER_MAX_NUMA_NODES]; /* config */ - u32 buffers_per_numa; + u32 default_buffers_per_numa; + u32 buffers_per_numa[VLIB_BUFFER_MAX_NUMA_NODES]; u16 ext_hdr_size; u32 default_data_size; clib_mem_page_sz_t log2_page_size; |