diff options
author | Tuomas Taipale <tuomas.taipale@nokia.com> | 2023-06-27 08:06:57 +0000 |
---|---|---|
committer | Tuomas Taipale <95341842+TuomasTaipale@users.noreply.github.com> | 2023-06-29 11:27:12 +0300 |
commit | 2b359fc1759726826cf4e2afddbd0b7e39fab4c7 (patch) | |
tree | 5fd5ff9eb1edd5e5971ac982750301ff6df34589 /platform/linux-dpdk | |
parent | d6461dfb25798aeb91bea58ebcd6ca6b128a835a (diff) |
linux-dpdk: pool: modify buffer maximum size capability
Use a more DPDK suitable maximum buffer size capability, derived from
configured packet segment size and buffer alignment values.
Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'platform/linux-dpdk')
-rw-r--r-- | platform/linux-dpdk/odp_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linux-dpdk/odp_pool.c b/platform/linux-dpdk/odp_pool.c index 862019333..9dd1a5ca2 100644 --- a/platform/linux-dpdk/odp_pool.c +++ b/platform/linux-dpdk/odp_pool.c @@ -58,7 +58,7 @@ #define POOL_NAME_FORMAT "%" PRIu64 "-%d-%s" /* Define a practical limit for contiguous memory allocations */ -#define MAX_SIZE (10 * 1024 * 1024) +#define MAX_SIZE (CONFIG_PACKET_SEG_SIZE - ODP_CONFIG_BUFFER_ALIGN_MIN) /* Maximum packet user area size */ #define MAX_UAREA_SIZE 2048 |