diff options
Diffstat (limited to 'platform/linux-generic/include/odp_config_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_config_internal.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/platform/linux-generic/include/odp_config_internal.h b/platform/linux-generic/include/odp_config_internal.h index 40d2639f1..899b261bd 100644 --- a/platform/linux-generic/include/odp_config_internal.h +++ b/platform/linux-generic/include/odp_config_internal.h @@ -54,6 +54,11 @@ extern "C" { #define CONFIG_QUEUE_MAX_ORD_LOCKS 2 /* + * Maximum number of stashes + */ +#define CONFIG_MAX_STASHES 128 + +/* * Maximum number of packet IO resources */ #define ODP_CONFIG_PKTIO_ENTRIES 64 @@ -119,10 +124,10 @@ extern "C" { /* * Number of shared memory blocks reserved for implementation internal use. * - * Each pool requires three SHM blocks (buffers, ring, user area). 20 blocks are - * reserved for per ODP module global data. + * Each stash requires one SHM block, each pool requires three blocks (buffers, + * ring, user area), and 20 blocks are reserved for per ODP module global data. */ -#define CONFIG_INTERNAL_SHM_BLOCKS ((ODP_CONFIG_POOLS * 3) + 20) +#define CONFIG_INTERNAL_SHM_BLOCKS (CONFIG_MAX_STASHES + (ODP_CONFIG_POOLS * 3) + 20) /* * Maximum number of shared memory blocks. |