vppinfra: deprecate CLIB_VEC64
Type: refactor Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: Id1e7c0926036db4601c91438397ceed22381fc07
This commit is contained in:

committed by
Florin Coras

parent
487507f40f
commit
2fef3dfa5c
@ -1054,9 +1054,7 @@ much of anything else.
|
|||||||
heapsize <n>M | <n>G
|
heapsize <n>M | <n>G
|
||||||
^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Specifies the size of the heap in MB or GB. The default is 1GB. Setting the
|
Specifies the size of the heap in MB or GB. The default is 1GB.
|
||||||
main heap size to 4GB or more requires recompilation of the entire system
|
|
||||||
with CLIB_VEC64 > 0. See .../clib/clib/vec_bootstrap.h.
|
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
|
@ -31,11 +31,7 @@ typedef struct
|
|||||||
uword callers[12];
|
uword callers[12];
|
||||||
|
|
||||||
/* Count of allocations with this traceback. */
|
/* Count of allocations with this traceback. */
|
||||||
#if CLIB_VEC64 > 0
|
|
||||||
u64 n_allocations;
|
|
||||||
#else
|
|
||||||
u32 n_allocations;
|
u32 n_allocations;
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Count of bytes allocated with this traceback. */
|
/* Count of bytes allocated with this traceback. */
|
||||||
u32 n_bytes;
|
u32 n_bytes;
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -54,13 +54,9 @@
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
#if CLIB_VEC64 > 0
|
|
||||||
u64 len;
|
|
||||||
#else
|
|
||||||
u32 len; /**< Number of elements in vector (NOT its allocated length). */
|
u32 len; /**< Number of elements in vector (NOT its allocated length). */
|
||||||
u8 numa_id; /**< NUMA id */
|
u8 numa_id; /**< NUMA id */
|
||||||
u8 vpad[3]; /**< pad to 8 bytes */
|
u8 vpad[3]; /**< pad to 8 bytes */
|
||||||
#endif
|
|
||||||
u8 vector_data[0]; /**< Vector data . */
|
u8 vector_data[0]; /**< Vector data . */
|
||||||
} vec_header_t;
|
} vec_header_t;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user