diff options
author | Damjan Marion <damarion@cisco.com> | 2019-02-28 23:16:11 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-03-04 12:22:56 +0000 |
commit | b592d1b64140e248f91dc76ce17da65ea90a4798 (patch) | |
tree | 6e5110580fa352165ec20ac02fec694cd5927d35 /src/vlib/buffer.h | |
parent | 470a3704e38d710018f1aa55c8bf857e55fbc069 (diff) |
buffers: support cases where numa node memory is not available
Change-Id: I550ef893e41d86310d4e5af16d6100b8e557b68a
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/buffer.h')
-rw-r--r-- | src/vlib/buffer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vlib/buffer.h b/src/vlib/buffer.h index 31baf5fd21e..514e73bd7ca 100644 --- a/src/vlib/buffer.h +++ b/src/vlib/buffer.h @@ -394,6 +394,8 @@ typedef struct vlib_buffer_t buffer_template; } vlib_buffer_pool_t; +#define VLIB_BUFFER_MAX_NUMA_NODES 32 + typedef struct { CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); @@ -409,7 +411,7 @@ typedef struct has never been allocated. */ uword *buffer_known_hash; clib_spinlock_t buffer_known_hash_lockp; - u32 n_numa_nodes; + u8 default_buffer_pool_index_for_numa[VLIB_BUFFER_MAX_NUMA_NODES]; /* config */ u32 buffers_per_numa; |