The current code looks awkward, it defines pkt.num as 564. Clean that up
and set it to 8k to make sure even several big descriptor rings could be
accomodated.

Signed-off-by: Zoltan Kiss <zoltan.k...@linaro.org>

diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c
index a85b830..a4c6e49 100644
--- a/test/performance/odp_l2fwd.c
+++ b/test/performance/odp_l2fwd.c
@@ -33,7 +33,7 @@
 /** @def SHM_PKT_POOL_SIZE
  * @brief Size of the shared memory block
  */
-#define SHM_PKT_POOL_SIZE      (512*2048)
+#define SHM_PKT_POOL_SIZE      8192
 
 /** @def SHM_PKT_POOL_BUF_SIZE
  * @brief Buffer size of the packet pool buffer
@@ -535,7 +535,7 @@ int main(int argc, char *argv[])
        odp_pool_param_init(&params);
        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     = SHM_PKT_POOL_SIZE;
        params.type        = ODP_POOL_PACKET;
 
        pool = odp_pool_create("packet pool", &params);
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to