diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2016-08-11 19:16:07 +0200 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2016-08-11 19:39:13 +0200 |
commit | d377af1fb8d733704dbf500f97be50095689e854 (patch) | |
tree | 24090b4f255bb575b84eaaca962ece71655fe2b4 | |
parent | 200a8e8be0d4a1995b01658dd3a0139f61306ba5 (diff) |
generator: mimic how l2fwd sets up the POOL_NUM_PKT
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rw-r--r-- | generator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator.c b/generator.c index b0053b9..1212865 100644 --- a/generator.c +++ b/generator.c @@ -27,7 +27,7 @@ #include <odp/helper/icmp.h> #define MAX_WORKERS 32 /**< max number of works */ -#define SHM_PKT_POOL_SIZE (512*2048) /**< pkt pool size */ +#define POOL_NUM_PKT 8192 #define SHM_PKT_POOL_BUF_SIZE 1856 /**< pkt pool buf size */ #define DEFAULT_PKT_INTERVAL 1000 /**< interval btw each pkt */ @@ -706,7 +706,7 @@ int main(int argc, char *argv[]) odp_pool_param_init(¶ms); params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE; params.pkt.len = SHM_PKT_POOL_BUF_SIZE; - params.pkt.num = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE; + params.pkt.num = POOL_NUM_PKT; params.type = ODP_POOL_PACKET; pool = odp_pool_create("packet_pool", ¶ms); |